int count_latency = 0;
double min_execution_time = -1, max_execution_time = 0, sum_execution_time = 0;
int count_execution_time = 0;
+ bool checkresult = false;
BOOST_FOREACH(const Host::Ptr& host, ConfigType::GetObjectsByType<Host>()) {
ObjectLock olock(host);
if (!cr)
continue;
+ /* set to true, we have a checkresult */
+ checkresult = true;
+
/* latency */
double latency = cr->CalculateLatency();
count_execution_time++;
}
+ if (!checkresult) {
+ min_latency = 0;
+ min_execution_time = 0;
+ }
+
CheckableCheckStatistics ccs;
ccs.min_latency = min_latency;
int count_latency = 0;
double min_execution_time = -1, max_execution_time = 0, sum_execution_time = 0;
int count_execution_time = 0;
+ bool checkresult = false;
BOOST_FOREACH(const Service::Ptr& service, ConfigType::GetObjectsByType<Service>()) {
ObjectLock olock(service);
if (!cr)
continue;
+ /* set to true, we have a checkresult */
+ checkresult = true;
+
/* latency */
double latency = cr->CalculateLatency();
count_execution_time++;
}
+ if (!checkresult) {
+ min_latency = 0;
+ min_execution_time = 0;
+ }
+
CheckableCheckStatistics ccs;
ccs.min_latency = min_latency;