[WINDOWS] Reorganise CPU stats display #2131

This commit is contained in:
nicolargo 2022-09-18 09:54:43 +02:00
parent bf27ed9e8f
commit acb50b70a1

View File

@ -41,6 +41,10 @@ User CPU time is the time spent on the processor running your program\'s code (o
operations to complete.',
'unit': 'percent',
},
'dpc': {
'description': '*(Windows)*: time spent servicing deferred procedure calls (DPCs)',
'unit': 'percent',
},
'idle': {
'description': 'percent of CPU used by any program. Every program or task \
that runs on a computer system occupies a certain amount of processing \
@ -285,7 +289,7 @@ class Plugin(GlancesPlugin):
# Add specifics information
# Alert and log
for key in ['user', 'system', 'iowait', 'total']:
for key in ['user', 'system', 'iowait', 'dpc', 'total']:
if key in self.stats:
self.views[key]['decoration'] = self.get_alert_log(self.stats[key], header=key)
# Alert only