Fixed calculation of next check timestamp.

This commit is contained in:
Gunnar Beutner 2012-07-24 16:46:48 +02:00
parent 0423f42d03
commit d3be282f2b
1 changed files with 1 additions and 1 deletions

View File

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