mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-30 06:28:30 +02:00
Pypackage fix interval sleep time
This commit is contained in:
parent
4e709254c7
commit
391fec99d2
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ if __name__ == '__main__':
|
|||
print('', end='', flush=True)
|
||||
|
||||
if loop_interval > 0 and (time.time() - t_loop_start) < loop_interval:
|
||||
time.sleep(time.time() % loop_interval)
|
||||
time.sleep(loop_interval - (time.time() - t_loop_start))
|
||||
|
||||
except KeyboardInterrupt:
|
||||
sys.exit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue