]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
The HTTP/ICP requests/messages per minute are not correct when multiple workers used
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 10 Dec 2010 17:32:43 +0000 (19:32 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 10 Dec 2010 17:32:43 +0000 (19:32 +0200)
The HTTP requests/min and ICP messages/min are the sum of the corresponding
kids values not the average.

src/stat.cc

index a020ccf4e96dd1e3d82c0fd7ce7a462455162817..cece967b9c9ac39b5610da89fe4784f94db0a1f6 100644 (file)
@@ -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);