mirror of https://github.com/Icinga/icinga2.git
Fixed execution time calculation.
This commit is contained in:
parent
11c81231b8
commit
ccc5f0c61d
|
@ -102,7 +102,7 @@ void CompatComponent::DumpServiceStatus(ofstream& fp, Service service)
|
||||||
cr->GetProperty("execution_end", &execution_end);
|
cr->GetProperty("execution_end", &execution_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
long execution_time = (execution_start - execution_start);
|
long execution_time = (execution_end - execution_start);
|
||||||
long latency = (schedule_end - schedule_start) - execution_time;
|
long latency = (schedule_end - schedule_start) - execution_time;
|
||||||
|
|
||||||
fp << "servicestatus {" << endl
|
fp << "servicestatus {" << endl
|
||||||
|
|
Loading…
Reference in New Issue