From: Gunnar Beutner Date: Wed, 27 Jun 2012 21:57:46 +0000 (+0200) Subject: Fixed execution time calculation. X-Git-Tag: v0.0.1~353 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccc5f0c61d353738dd1c09d3dea0848c5204aa31;p=icinga2 Fixed execution time calculation. --- diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp index 797b35c5b..3e2e9fe0c 100644 --- a/components/compat/compatcomponent.cpp +++ b/components/compat/compatcomponent.cpp @@ -102,7 +102,7 @@ void CompatComponent::DumpServiceStatus(ofstream& fp, Service service) 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; fp << "servicestatus {" << endl