diff options
author | Von Random <von@vdrandom.org> | 2019-03-11 14:33:05 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2019-03-11 14:33:05 +0300 |
commit | dac9efdd426f67630d8a52d472c24aca0c433f20 (patch) | |
tree | 19e2b65889db081927749076b8af527a487ef308 | |
parent | 26313c0564655e3d86d7acc5ebf89d97494578dd (diff) |
load plugin: formatting update, less frequent queries
-rw-r--r-- | plugins/load.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/load.py b/plugins/load.py index 45f1685..224dc60 100644 --- a/plugins/load.py +++ b/plugins/load.py @@ -4,7 +4,7 @@ import plugins class PluginThread(plugins.PluginThreadCommon): def __init__(self, config): - defaults = {'problem': 1} + defaults = {'freq': 20, 'problem': 1} super(PluginThread, self).__init__(config, defaults) def main(self): @@ -15,5 +15,5 @@ class PluginThread(plugins.PluginThreadCommon): else: self.hide = True self.status['urgent'] = False - loads = [str(i) for i in loads] + loads = ['{:.2f}'.format(i) for i in loads] self.status['full_text'] = 'LA: ' + ' '.join(loads) |