mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
Fixed calculation of next check timestamp.
This commit is contained in:
parent
0423f42d03
commit
d3be282f2b
@ -202,7 +202,7 @@ void Service::UpdateNextCheck(void)
|
|||||||
else
|
else
|
||||||
interval = GetCheckInterval();
|
interval = GetCheckInterval();
|
||||||
|
|
||||||
next = now + ((now - previous) / interval + 1) * interval;
|
next = (now - previous % interval) + interval;
|
||||||
SetNextCheck(next);
|
SetNextCheck(next);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user