get rid of thread_id and useless logic it used
This commit is contained in:
parent
bb9658d053
commit
0495bc2d79
7 changed files with 7 additions and 9 deletions
|
@ -5,7 +5,7 @@ BATTERY_DIR = '/sys/class/power_supply/BAT0/'
|
|||
|
||||
|
||||
class PluginThread(plugins.common.PluginThreadCommon):
|
||||
def __init__(self, section, config, thread_id):
|
||||
def __init__(self, section, config):
|
||||
super(PluginThread, self).__init__(section, config)
|
||||
|
||||
def main(self):
|
||||
|
|
|
@ -3,7 +3,7 @@ import plugins.common
|
|||
|
||||
|
||||
class PluginThread(plugins.common.PluginThreadCommon):
|
||||
def __init__(self, section, config, thread_id):
|
||||
def __init__(self, section, config):
|
||||
super(PluginThread, self).__init__(section, config)
|
||||
self.date_format = config.get(section, 'format', fallback='%c')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import psutil
|
|||
|
||||
|
||||
class PluginThread(plugins.common.PluginThreadCommon):
|
||||
def __init__(self, section, config, thread_id):
|
||||
def __init__(self, section, config):
|
||||
super(PluginThread, self).__init__(section, config)
|
||||
self.part = config.get(section, 'part')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import plugins.common
|
|||
|
||||
|
||||
class PluginThread(plugins.common.PluginThreadCommon):
|
||||
def __init__(self, section, config, thread_id):
|
||||
def __init__(self, section, config):
|
||||
super(PluginThread, self).__init__(section, config)
|
||||
self.hide_ok = config.getboolean(section, 'hide_ok', fallback=False)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import plugins.common
|
|||
|
||||
|
||||
class PluginThread(plugins.common.PluginThreadCommon):
|
||||
def __init__(self, section, config, thread_id):
|
||||
def __init__(self, section, config):
|
||||
super(PluginThread, self).__init__(section, config)
|
||||
|
||||
def main(self):
|
||||
|
|
|
@ -4,7 +4,7 @@ import plugins.common
|
|||
|
||||
|
||||
class PluginThread(plugins.common.PluginThreadCommon):
|
||||
def __init__(self, section, config, thread_id):
|
||||
def __init__(self, section, config):
|
||||
super(PluginThread, self).__init__(section, config)
|
||||
self.hosts = config.get(section, 'hosts').split(',')
|
||||
self.title = config.get(section, 'title')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue