From 8dcb8bdd2ed7c1b5bc3d3b565aa30fa0873e4f70 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 4 Sep 2012 10:45:00 +0200 Subject: [PATCH] Fixed notification for missed checks. --- components/checker/checkercomponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/checker/checkercomponent.cpp b/components/checker/checkercomponent.cpp index 2a60ef5e4..0fb475bf1 100644 --- a/components/checker/checkercomponent.cpp +++ b/components/checker/checkercomponent.cpp @@ -76,7 +76,7 @@ void CheckerComponent::CheckTimerHandler(void) if (cr) { double lastCheck = cr->Get("execution_end"); - int missed = (Utility::GetTime() - lastCheck) / service->GetCheckInterval(); + int missed = (Utility::GetTime() - lastCheck) / service->GetCheckInterval() - 1; if (missed > 0) { missedChecks += missed;