Build fix.

This commit is contained in:
Gunnar Beutner 2013-02-08 10:31:11 +01:00
parent ad04a02153
commit 32d6308a3c
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}