[icinga-checkins] icinga.org: icinga2/master: Build fix.

git at icinga.org git at icinga.org
Fri Feb 8 10:32:10 CET 2013


Module: icinga2
Branch: master
Commit: 32d6308a3cc9e9cc57a94f48744ca78371d6f0d6
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=32d6308a3cc9e9cc57a94f48744ca78371d6f0d6

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Feb  8 10:31:11 2013 +0100

Build fix.

---

 lib/icinga/service.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp
index c1df7b4..ea01284 100644
--- a/lib/icinga/service.cpp
+++ b/lib/icinga/service.cpp
@@ -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);
 }





More information about the icinga-checkins mailing list