Windows: change in the highlighting of a process niceness

Highlight the nice value of a process when is different from 32 (normal).
pull/404/head
Alessio Sergi 2014-06-21 18:21:25 +02:00
parent 8602f9fa64
commit 65e6c83eda
1 changed files with 2 additions and 2 deletions

View File

@ -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))