From 65e6c83eda331cec80ce01d2aaadd0438998390f Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 21 Jun 2014 18:21:25 +0200 Subject: [PATCH] Windows: change in the highlighting of a process niceness Highlight the nice value of a process when is different from 32 (normal). --- glances/plugins/glances_processlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glances/plugins/glances_processlist.py b/glances/plugins/glances_processlist.py index 74cf34b8..5c7242c1 100644 --- a/glances/plugins/glances_processlist.py +++ b/glances/plugins/glances_processlist.py @@ -24,7 +24,7 @@ import os from datetime import timedelta # Import Glances libs -from glances.core.glances_globals import glances_processes +from glances.core.glances_globals import glances_processes, is_linux, is_windows from glances.plugins.glances_plugin import GlancesPlugin @@ -149,7 +149,7 @@ class Plugin(GlancesPlugin): if nice is None: nice = '?' msg = '{0:>5}'.format(nice) - if nice != 0: + if (is_linux and nice != 0) or (is_windows and nice != 32): ret.append(self.curse_add_line(msg, decoration='NICE')) else: ret.append(self.curse_add_line(msg))