diff options
author | Nicolargo <nicolas@nicolargo.com> | 2014-10-25 16:13:35 +0200 |
---|---|---|
committer | Nicolargo <nicolas@nicolargo.com> | 2014-10-25 16:13:35 +0200 |
commit | 412b8afc0c3505873a2d9ba099a6c28909b7b833 (patch) | |
tree | 05819620ae57b527bf04a08284d145e7cd0b57df /glances/plugins/glances_load.py | |
parent | 4abad6e89a0fa4222292eb2e5c7d873cee5f6918 (diff) |
Correct issue #433 on battery percent update
Diffstat (limited to 'glances/plugins/glances_load.py')
-rw-r--r-- | glances/plugins/glances_load.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/glances/plugins/glances_load.py b/glances/plugins/glances_load.py index 22a3cd04..0808421c 100644 --- a/glances/plugins/glances_load.py +++ b/glances/plugins/glances_load.py @@ -38,7 +38,7 @@ snmp_oid = {'min1': '1.3.6.1.4.1.2021.10.1.3.1', # Define the history items list # All items in this list will be historised if the --enable-history tag is set # 'color' define the graph color in #RGB format -items_history_list = [{'name': 'min1', 'color': '#0000FF'}, +items_history_list = [{'name': 'min1', 'color': '#0000FF'}, {'name': 'min5', 'color': '#0000AA'}, {'name': 'min15', 'color': '#000044'}] @@ -52,7 +52,8 @@ class Plugin(GlancesPlugin): def __init__(self, args=None): """Init the plugin.""" - GlancesPlugin.__init__(self, args=args, items_history_list=items_history_list) + GlancesPlugin.__init__( + self, args=args, items_history_list=items_history_list) # We want to display the stat in the curse interface self.display_curse = True @@ -70,6 +71,7 @@ class Plugin(GlancesPlugin): """Reset/init the stats.""" self.stats = {} + @GlancesPlugin._log_result_decorator def update(self): """Update load stats.""" # Reset stats |