mirror of https://github.com/Icinga/icinga2.git
Fixed notification for missed checks.
This commit is contained in:
parent
8e33123a50
commit
8dcb8bdd2e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue