mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +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) {
|
if (cr) {
|
||||||
double lastCheck = cr->Get("execution_end");
|
double lastCheck = cr->Get("execution_end");
|
||||||
int missed = (Utility::GetTime() - lastCheck) / service->GetCheckInterval();
|
int missed = (Utility::GetTime() - lastCheck) / service->GetCheckInterval() - 1;
|
||||||
|
|
||||||
if (missed > 0) {
|
if (missed > 0) {
|
||||||
missedChecks += missed;
|
missedChecks += missed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user