From e58e5e069178be975b1e0ae329d587485c38fede Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 12 Dec 2019 12:07:42 +0000 Subject: [PATCH] more brackets in blob of math, just in case --- src/core_modules/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_modules/cron.py b/src/core_modules/cron.py index 56a73206..40c21bd1 100644 --- a/src/core_modules/cron.py +++ b/src/core_modules/cron.py @@ -5,7 +5,7 @@ class Module(ModuleManager.BaseModule): def on_load(self): now = datetime.datetime.utcnow() next_minute = now.replace(minute=now.minute+1, second=0, microsecond=0) - until = time.time()+(next_minute-now).total_seconds() + until = time.time()+((next_minute-now).total_seconds()) self.timers.add("cron", self._minute, 60, until) def _minute(self, timer):