From 44263e3760706820081fdf55f9116d5f1ad3e759 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Wed, 11 Mar 2015 20:06:58 +0100 Subject: [PATCH] Correct an issue on CPU alert (always system...) --- glances/plugins/glances_cpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/plugins/glances_cpu.py b/glances/plugins/glances_cpu.py index d0afc350..3bd220dd 100644 --- a/glances/plugins/glances_cpu.py +++ b/glances/plugins/glances_cpu.py @@ -150,7 +150,7 @@ class Plugin(GlancesPlugin): for key in ['user', 'system', 'iowait']: if key in self.stats: self.views[key]['decoration'] = self.get_alert_log(self.stats[key], header=key) - self.views['total']['decoration'] = self.get_alert_log(self.stats['total'], header="system") + self.views['total']['decoration'] = self.get_alert_log(self.stats['total'], header=key) # Alert only for key in ['steal']: if key in self.stats: