]> granicus.if.org Git - icinga2/commitdiff
Bugfix: Missing call to SetScheduleStart()
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 27 Jun 2012 21:52:33 +0000 (23:52 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 27 Jun 2012 21:52:33 +0000 (23:52 +0200)
icinga/nagioschecktask.cpp

index 39b2d31eb2a42b9ff864c9c15c024d0a43aac7de..6cf767664fa7f0b277379db959560f5b7a29be23 100644 (file)
@@ -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);