diff --git a/.changelogs/1.1.0/45_fix_daemon_timer.yml b/.changelogs/1.1.0/45_fix_daemon_timer.yml new file mode 100644 index 0000000..b6a4dd5 --- /dev/null +++ b/.changelogs/1.1.0/45_fix_daemon_timer.yml @@ -0,0 +1,2 @@ +changed: + - Fix daemon timer to use hours instead of minutes. [#45] diff --git a/proxlb b/proxlb index 381c60c..fb92547 100755 --- a/proxlb +++ b/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)