From 11c81231b8c676d3fdbdbadbaf6f9b04742819fb Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 27 Jun 2012 23:52:33 +0200 Subject: [PATCH] Bugfix: Missing call to SetScheduleStart() --- icinga/nagioschecktask.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/icinga/nagioschecktask.cpp b/icinga/nagioschecktask.cpp index 39b2d31eb..6cf767664 100644 --- a/icinga/nagioschecktask.cpp +++ b/icinga/nagioschecktask.cpp @@ -101,8 +101,10 @@ void NagiosCheckTask::CheckThreadProc(void) while (!m_Tasks.empty() && tasks.size() < MaxChecksPerThread) { NagiosCheckTask::Ptr task = m_Tasks.front(); m_Tasks.pop_front(); + time_t now; + time(&now); + task->GetResult().SetScheduleStart(now); if (!task->InitTask()) { - time_t now; time(&now); task->GetResult().SetScheduleEnd(now);