fix config.get -> config.getint
This commit is contained in:
parent
b839f9f114
commit
b1d44b5582
4 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ class PluginThread(threading.Thread):
|
|||
self.status = dict()
|
||||
if config.has_option(section, 'color'):
|
||||
self.status['color'] = config.get(section, 'color')
|
||||
self.freq = config.get(section, 'freq', fallback=1)
|
||||
self.freq = config.getint(section, 'freq', fallback=1)
|
||||
|
||||
def main(self):
|
||||
with open(BATTERY_DIR + 'capacity', 'r') as capacity, \
|
||||
|
|
|
@ -10,7 +10,7 @@ class PluginThread(threading.Thread):
|
|||
self.status = dict()
|
||||
if config.has_option(section, 'color'):
|
||||
self.status['color'] = config.get(section, 'color')
|
||||
self.freq = config.get(section, 'freq', fallback=1)
|
||||
self.freq = config.getint(section, 'freq', fallback=1)
|
||||
|
||||
def main(self):
|
||||
self.status['full_text'] = time.strftime(self.date_format)
|
||||
|
|
|
@ -11,7 +11,7 @@ class PluginThread(threading.Thread):
|
|||
self.status = dict()
|
||||
if config.has_option(section, 'color'):
|
||||
self.status['color'] = config.get(section, 'color')
|
||||
self.freq = config.get(section, 'freq', fallback=10)
|
||||
self.freq = config.getint(section, 'freq', fallback=10)
|
||||
|
||||
def main(self):
|
||||
loads = os.getloadavg()
|
||||
|
|
|
@ -10,7 +10,7 @@ class PluginThread(threading.Thread):
|
|||
self.status = dict()
|
||||
if config.has_option(section, 'color'):
|
||||
self.status['color'] = config.get(section, 'color')
|
||||
self.freq = config.get(section, 'freq', fallback=1)
|
||||
self.freq = config.getint(section, 'freq', fallback=1)
|
||||
|
||||
def main(self):
|
||||
mem_stat = psutil.virtual_memory()
|
||||
|
|
Loading…
Reference in a new issue