From acb50b70a1db85c7505dc82c93556a29f8f51cab Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 18 Sep 2022 09:54:43 +0200 Subject: [PATCH] [WINDOWS] Reorganise CPU stats display #2131 --- glances/plugins/glances_cpu.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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