From 51c7093e13bf90f74b04ff5755ba5203c31c1876 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 11 Mar 2014 15:21:35 +0100 Subject: [PATCH] Fix initial check interval. Refs #5716 --- lib/icinga/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp index 793180be1..896537105 100644 --- a/lib/icinga/service.cpp +++ b/lib/icinga/service.cpp @@ -51,7 +51,7 @@ void Service::Start(void) double now = Utility::GetTime(); if (GetNextCheck() < now + 300) - SetNextCheck(now + Utility::Random() % 300); + UpdateNextCheck(); DynamicObject::Start(); } -- 2.40.0