fix: Fix daemon timer to use hours instead of minutes.

Reported by: @mater-345
Fixes: #45
This commit is contained in:
Florian Paul Azim Hoberg
2024-08-06 18:06:05 +02:00
parent 8791007e77
commit 37e7a601be
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
changed:
- Fix daemon timer to use hours instead of minutes. [#45]

2
proxlb
View File

@@ -113,7 +113,7 @@ def validate_daemon(daemon, schedule):
if bool(int(daemon)):
logging.info(f'{info_prefix} Running in daemon mode. Next run in {schedule} hours.')
time.sleep(int(schedule) * 60)
time.sleep(int(schedule) * 60 * 60)
else:
logging.info(f'{info_prefix} Not running in daemon mode. Quitting.')
sys.exit(0)