mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 13:14:32 +02:00
Bugfix: Missing call to SetScheduleStart()
This commit is contained in:
parent
d11da74931
commit
11c81231b8
@ -101,8 +101,10 @@ void NagiosCheckTask::CheckThreadProc(void)
|
|||||||
while (!m_Tasks.empty() && tasks.size() < MaxChecksPerThread) {
|
while (!m_Tasks.empty() && tasks.size() < MaxChecksPerThread) {
|
||||||
NagiosCheckTask::Ptr task = m_Tasks.front();
|
NagiosCheckTask::Ptr task = m_Tasks.front();
|
||||||
m_Tasks.pop_front();
|
m_Tasks.pop_front();
|
||||||
if (!task->InitTask()) {
|
|
||||||
time_t now;
|
time_t now;
|
||||||
|
time(&now);
|
||||||
|
task->GetResult().SetScheduleStart(now);
|
||||||
|
if (!task->InitTask()) {
|
||||||
time(&now);
|
time(&now);
|
||||||
task->GetResult().SetScheduleEnd(now);
|
task->GetResult().SetScheduleEnd(now);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user