mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
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…
x
Reference in New Issue
Block a user