Skip to content

Commit

Permalink
fix: use correct event timestamp in ms instead of seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrie158 committed Sep 20, 2024
1 parent 6f14894 commit 08d80ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08d80ce

Please sign in to comment.