aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules/cron.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-12-12 12:07:42 +0000
committerGravatar jesopo2019-12-12 12:07:42 +0000
commite58e5e069178be975b1e0ae329d587485c38fede (patch)
tree4dd3ecf6d1a3507bede90655a556ae91d887c71e /src/core_modules/cron.py
parentsupport cron schedule range values (diff)
signature
more brackets in blob of math, just in case
Diffstat (limited to 'src/core_modules/cron.py')
-rw-r--r--src/core_modules/cron.py2
1 files changed, 1 insertions, 1 deletions
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):