diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-09-18 09:54:43 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-09-18 09:54:43 +0200 |
commit | acb50b70a1db85c7505dc82c93556a29f8f51cab (patch) | |
tree | 7e73707cb7f67d5f8f620e97848ad4179c40328b | |
parent | bf27ed9e8fe3c22d8a121c61365582a5697f1432 (diff) |
[WINDOWS] Reorganise CPU stats display #2131
-rw-r--r-- | glances/plugins/glances_cpu.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/glances/plugins/glances_cpu.py b/glances/plugins/glances_cpu.py index 20f78b17..c82f2c46 100644 --- a/glances/plugins/glances_cpu.py +++ b/glances/plugins/glances_cpu.py @@ -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 |