From: Amos Jeffries Date: Fri, 8 May 2015 07:13:35 +0000 (-0700) Subject: CacheMgr: display 'client_db off' instead of 0 clients accessing cache X-Git-Tag: merge-candidate-3-v1~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=154df539359ad4bd9bb3f0e32bb7ef90e9c68543;p=thirdparty%2Fsquid.git CacheMgr: display 'client_db off' instead of 0 clients accessing cache ... to clarify why there is no record of even the mgr request happening. The cleint_db mechanism needs to be enabled and measuring traffci for any useful client counter value to exist. --- diff --git a/src/stat.cc b/src/stat.cc index 0b57d16af5..0ea6bc28d2 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -621,8 +621,10 @@ DumpInfo(Mgr::InfoActionData& stats, StoreEntry* sentry) storeAppendPrintf(sentry, "Connection information for %s:\n",APP_SHORTNAME); - storeAppendPrintf(sentry, "\tNumber of clients accessing cache:\t%.0f\n", - stats.client_http_clients); + if (Config.onoff.client_db) + storeAppendPrintf(sentry, "\tNumber of clients accessing cache:\t%.0f\n", stats.client_http_clients); + else + sentry->append("\tNumber of clients accessing cache:\t(client_db off)\n", 52); storeAppendPrintf(sentry, "\tNumber of HTTP requests received:\t%.0f\n", stats.client_http_requests);