From 2a96e722b466b60b1404d12ccf47762de0c53016 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Tue, 10 Nov 2020 21:22:18 +0800 Subject: [PATCH] watchtower: Fix all clear duration message --- watchtower/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/watchtower/src/main.rs b/watchtower/src/main.rs index 1e1120141b..047076adb4 100644 --- a/watchtower/src/main.rs +++ b/watchtower/src/main.rs @@ -457,6 +457,7 @@ fn main() -> Result<(), Box> { } else { if !last_notification_msg.is_empty() { let alarm_duration = Instant::now().duration_since(last_success); + let alarm_duration = alarm_duration - config.interval; // Subtract the period before the first error let alarm_duration = Duration::from_secs(alarm_duration.as_secs()); // Drop milliseconds in message let all_clear_msg = format!(