diff options
author | Von Random <von@vdrandom.org> | 2016-10-23 02:27:27 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2016-10-23 02:27:27 +0300 |
commit | b1d44b5582050c3cb5b6b6c3428e7ac2b5176489 (patch) | |
tree | 1779c0640fd0a7bee10505a60cf26f671ed52481 | |
parent | b839f9f11437c471408e87489ad263f1db978a84 (diff) |
fix config.get -> config.getint
-rw-r--r-- | plugins/batt.py | 2 | ||||
-rw-r--r-- | plugins/date.py | 2 | ||||
-rw-r--r-- | plugins/load.py | 2 | ||||
-rw-r--r-- | plugins/mem.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/plugins/batt.py b/plugins/batt.py index f3502a0..bd57fac 100644 --- a/plugins/batt.py +++ b/plugins/batt.py @@ -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, \ diff --git a/plugins/date.py b/plugins/date.py index d616f3f..49a1bc6 100644 --- a/plugins/date.py +++ b/plugins/date.py @@ -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) diff --git a/plugins/load.py b/plugins/load.py index 49e701c..4a9119c 100644 --- a/plugins/load.py +++ b/plugins/load.py @@ -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() diff --git a/plugins/mem.py b/plugins/mem.py index 2bdfc0f..a7e7e48 100644 --- a/plugins/mem.py +++ b/plugins/mem.py @@ -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() |