mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 20:21:35 +03:00
Windows: change in the highlighting of a process niceness
Highlight the nice value of a process when is different from 32 (normal).
This commit is contained in:
parent
8602f9fa64
commit
65e6c83eda
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user