From: wessels <> Date: Fri, 14 Feb 2003 03:52:42 +0000 (+0000) Subject: in 'client_list' cachemgr output, remove the percentage from the FETCHES X-Git-Tag: SQUID_3_0_PRE1~352 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcc61c4df06783be04009c0a18caefffd06800bd;p=thirdparty%2Fsquid.git in 'client_list' cachemgr output, remove the percentage from the FETCHES line. It is no longer menaingful because fetches is incremented for non-ICP based forwarding decisions. Also moved FETCHES to the top of the output with other "TCP-ish" stats and out of the "UDP-ish" stats section. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index e423c0b845..3b001c85bd 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,6 +1,6 @@ /* - * $Id: neighbors.cc,v 1.311 2003/02/12 06:11:04 robertc Exp $ + * $Id: neighbors.cc,v 1.312 2003/02/13 20:52:42 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -1329,8 +1329,9 @@ dump_peers(StoreEntry * sentry, peer * peers) } storeAppendPrintf(sentry, "Status : %s\n", neighborUp(e) ? "Up" : "Down"); - storeAppendPrintf(sentry, "AVG RTT : %d msec\n", e->stats.rtt); + storeAppendPrintf(sentry, "FETCHES : %d\n", e->stats.fetches); storeAppendPrintf(sentry, "OPEN CONNS : %d\n", e->stats.conn_open); + storeAppendPrintf(sentry, "AVG RTT : %d msec\n", e->stats.rtt); storeAppendPrintf(sentry, "LAST QUERY : %8d seconds ago\n", (int) (squid_curtime - e->stats.last_query)); storeAppendPrintf(sentry, "LAST REPLY : %8d seconds ago\n", @@ -1339,9 +1340,6 @@ dump_peers(StoreEntry * sentry, peer * peers) storeAppendPrintf(sentry, "PINGS ACKED: %8d %3d%%\n", e->stats.pings_acked, percent(e->stats.pings_acked, e->stats.pings_sent)); - storeAppendPrintf(sentry, "FETCHES : %8d %3d%%\n", - e->stats.fetches, - percent(e->stats.fetches, e->stats.pings_acked)); storeAppendPrintf(sentry, "IGNORED : %8d %3d%%\n", e->stats.ignored_replies, percent(e->stats.ignored_replies, e->stats.pings_acked));