mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-17 05:16:25 -04:00
Resolve merge issue
This commit is contained in:
@@ -121,12 +121,15 @@ class Plugin(GlancesPlugin):
|
||||
# Call the father's method
|
||||
GlancesPlugin.update_views(self)
|
||||
|
||||
if self.views != {}:
|
||||
# Add specifics informations
|
||||
# Add specifics informations
|
||||
try:
|
||||
# Alert and log
|
||||
self.views['min15']['decoration'] = self.get_alert_log(self.stats['min15'], max=100 * self.stats['cpucore'])
|
||||
# Alert only
|
||||
self.views['min5']['decoration'] = self.get_alert(self.stats['min5'], max=100 * self.stats['cpucore'])
|
||||
except KeyError:
|
||||
# try/except mandatory for Windows compatibility (no load stats)
|
||||
pass
|
||||
|
||||
def msg_curse(self, args=None):
|
||||
"""Return the dict to display in the curse interface."""
|
||||
|
||||
Reference in New Issue
Block a user