Skip to content

Commit

Permalink
fix: Fix daemon timer to use hours instead of minutes.
Browse files Browse the repository at this point in the history
Reported by: @mater-345
Fixes: #45
  • Loading branch information
gyptazy committed Aug 6, 2024
1 parent 8791007 commit 37e7a60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changelogs/1.1.0/45_fix_daemon_timer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
changed:
- Fix daemon timer to use hours instead of minutes. [#45]
2 changes: 1 addition & 1 deletion proxlb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37e7a60

Please sign in to comment.