Commit 2ff798bd authored by Julien Muchembled's avatar Julien Muchembled

TimerServer: remove meaningless sleep at the begin of the main loop

It makes to no sense to synchronize with the clock if there's nothing
after to remain synchronized.
parent d36af982
......@@ -104,15 +104,6 @@ class TimerServer:
module = self.module
interval = self.interval
# minutes = time.gmtime(time.time()[4], seconds = time.gmtime(time.time()[5]
# max interval is therefore 59*60 + 59 = 208919 seconds
wait = ((time.gmtime(time.time())[4] * 60) + time.gmtime(time.time())[5]) % interval
sleep = interval - wait
if sleep > 0:
time.sleep(sleep)
LOG('ZServer', INFO, 'Timerserver ready, starting timer services.')
while 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment