mirror of https://github.com/Icinga/icinga2.git
Build fix.
This commit is contained in:
parent
ad04a02153
commit
32d6308a3c
|
@ -284,12 +284,11 @@ void Service::UpdateNextCheck(void)
|
|||
else
|
||||
interval = GetCheckInterval();
|
||||
|
||||
double now = Utility::GetTime();
|
||||
double adj = 0;
|
||||
|
||||
if (interval > 1)
|
||||
double now = Utility::GetTime();
|
||||
adj = fmod(now + GetSchedulingOffset(), interval);
|
||||
}
|
||||
|
||||
SetNextCheck(now - adj + interval);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue