mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user