Skip to content

Commit 7dcc882

Browse files
committed
fix: reset cron timer after running
1 parent 4b12980 commit 7dcc882

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

observer/observer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,8 @@ async def observer_loop(config: Configuration) -> None:
746746
LOGGER.warning(f"Error calling API: {e}")
747747
last_ping = time.time()
748748

749-
if int(time.time() - cron_time) < 60 * 60:
749+
if time.time() - cron_time < 60 * 60:
750+
cron_time = time.time()
750751
check_functions = [
751752
entity.check_addresses(config, w),
752753
fum.check_addresses(config, w),

0 commit comments

Comments
 (0)