From 37e7a601be308f8c9b059e206cc49aaf83182058 Mon Sep 17 00:00:00 2001 From: Florian Paul Azim Hoberg Date: Tue, 6 Aug 2024 18:06:05 +0200 Subject: [PATCH] fix: Fix daemon timer to use hours instead of minutes. Reported by: @mater-345 Fixes: #45 --- .changelogs/1.1.0/45_fix_daemon_timer.yml | 2 ++ proxlb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .changelogs/1.1.0/45_fix_daemon_timer.yml 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)