load plugin: formatting update, less frequent queries
This commit is contained in:
parent
26313c0564
commit
dac9efdd42
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import plugins
|
||||||
|
|
||||||
class PluginThread(plugins.PluginThreadCommon):
|
class PluginThread(plugins.PluginThreadCommon):
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
defaults = {'problem': 1}
|
defaults = {'freq': 20, 'problem': 1}
|
||||||
super(PluginThread, self).__init__(config, defaults)
|
super(PluginThread, self).__init__(config, defaults)
|
||||||
|
|
||||||
def main(self):
|
def main(self):
|
||||||
|
@ -15,5 +15,5 @@ class PluginThread(plugins.PluginThreadCommon):
|
||||||
else:
|
else:
|
||||||
self.hide = True
|
self.hide = True
|
||||||
self.status['urgent'] = False
|
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)
|
self.status['full_text'] = 'LA: ' + ' '.join(loads)
|
||||||
|
|
Loading…
Reference in a new issue