]> granicus.if.org Git - icinga2/commitdiff
Fixed execution time calculation.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 27 Jun 2012 21:57:46 +0000 (23:57 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 27 Jun 2012 21:57:46 +0000 (23:57 +0200)
components/compat/compatcomponent.cpp

index 797b35c5b2fd1f444b074e0bf0cf635850fec51f..3e2e9fe0c0f9adbb868f3701f4a7a6e7938d6f2a 100644 (file)
@@ -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