mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-11 06:18:11 +03:00
Correct another issue on CPU alert (total should not be logged)
This commit is contained in:
parent
e16157996b
commit
fa765ed415
@ -150,9 +150,8 @@ 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=key)
|
||||
# Alert only
|
||||
for key in ['steal']:
|
||||
for key in ['steal', 'total']:
|
||||
if key in self.stats:
|
||||
self.views[key]['decoration'] = self.get_alert(self.stats[key], header=key)
|
||||
# Optional
|
||||
|
Loading…
Reference in New Issue
Block a user