more brackets in blob of math, just in case

This commit is contained in:
jesopo 2019-12-12 12:07:42 +00:00
parent 2084285480
commit e58e5e0691

View file

@ -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):