From 39d139a51bc5f87c26263f1aae8b8c865cb409fe Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Thu, 30 Apr 2020 20:18:42 +0200 Subject: [PATCH] [core/output] Use string format for interval see #609 --- core/output.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/output.py b/core/output.py index cdfb1c4..351f39d 100644 --- a/core/output.py +++ b/core/output.py @@ -5,6 +5,8 @@ import time import core.theme import core.event +import util.format + def dump_json(obj): return obj.dict() @@ -186,7 +188,7 @@ class i3(object): if not redraw_only: module.update_wrapper() if module.parameter('interval', '') != 'never': - module.next_update = now + float(module.parameter('interval', self.__config.interval())) + module.next_update = now + util.format.seconds(module.parameter('interval', self.__config.interval())) for widget in module.widgets(): self.__content[widget] = widget.full_text()