From: Christos Tsantilas Date: Fri, 10 Dec 2010 17:32:43 +0000 (+0200) Subject: The HTTP/ICP requests/messages per minute are not correct when multiple workers used X-Git-Tag: take1~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=615643337b26c494ee79faf228791cffccb67a0a;p=thirdparty%2Fsquid.git The HTTP/ICP requests/messages per minute are not correct when multiple workers used The HTTP requests/min and ICP messages/min are the sum of the corresponding kids values not the average. --- diff --git a/src/stat.cc b/src/stat.cc index a020ccf4e9..cece967b9c 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -721,10 +721,10 @@ DumpInfo(Mgr::InfoActionData& stats, StoreEntry* sentry) stats.request_failure_ratio / fct); storeAppendPrintf(sentry, "\tAverage HTTP requests per minute since start:\t%.1f\n", - stats.avg_client_http_requests / fct); + stats.avg_client_http_requests); storeAppendPrintf(sentry, "\tAverage ICP messages per minute since start:\t%.1f\n", - stats.avg_icp_messages / fct); + stats.avg_icp_messages); storeAppendPrintf(sentry, "\tSelect loop called: %.0f times, %0.3f ms avg\n", stats.select_loops, stats.avg_loop_time / fct);