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