From 08d80ced3b28b4b42ced1ee1963b01a0a66161dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Grie=C3=9Fhaber?= Date: Fri, 20 Sep 2024 20:13:06 +0200 Subject: [PATCH] fix: use correct event timestamp in ms instead of seconds --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index a9182ee..a3cbc13 100644 --- a/main.ts +++ b/main.ts @@ -109,7 +109,7 @@ function get_event_identifier(event: DockerApiEvent): string { } function event_was_during_blackout(event: DockerApiEvent): boolean { - return Configuration.blackout_windows.some((window) => timestamp_in_window(event.time, window)); + return Configuration.blackout_windows.some((window) => timestamp_in_window(event.time * 1_000, window)); } // check if we encountered an unexpected shutdown since last start