mirror of
https://github.com/gyptazy/ProxLB.git
synced 2026-04-05 20:31:57 +02:00
fix: Fix daemon timer to use hours instead of minutes.
Reported by: @mater-345 Fixes: #45
This commit is contained in:
2
.changelogs/1.1.0/45_fix_daemon_timer.yml
Normal file
2
.changelogs/1.1.0/45_fix_daemon_timer.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
changed:
|
||||
- Fix daemon timer to use hours instead of minutes. [#45]
|
||||
2
proxlb
2
proxlb
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user