From: wessels <> Date: Fri, 13 Feb 1998 06:52:13 +0000 (+0000) Subject: added "counters" cachemgr operation X-Git-Tag: SQUID_3_0_PRE1~4100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f5607d98c35b60269ebe9617afdb0b579320950;p=thirdparty%2Fsquid.git added "counters" cachemgr operation --- diff --git a/src/enums.h b/src/enums.h index a709cc3a2f..6b02b40b3c 100644 --- a/src/enums.h +++ b/src/enums.h @@ -150,6 +150,7 @@ typedef enum { MGR_STOREDIR, MGR_CBDATA, MGR_PCONN, + MGR_COUNTERS, MGR_5MIN, MGR_60MIN, MGR_MEM, diff --git a/src/protos.h b/src/protos.h index e17963261c..2415f4c6d4 100644 --- a/src/protos.h +++ b/src/protos.h @@ -630,6 +630,7 @@ extern OBJH dump_config; extern OBJH storeDirStats; extern OBJH pconnHistDump; extern void dump_peers(StoreEntry *, peer *); +extern OBJH statCounters; extern OBJH statAvg5min; extern OBJH statAvg60min; diff --git a/src/stat.cc b/src/stat.cc index eba57cb501..5908983029 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.195 1998/02/10 21:44:35 wessels Exp $ + * $Id: stat.cc,v 1.196 1998/02/12 23:52:16 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -788,21 +788,19 @@ statAvgTick(void *notused) } void -statAvg5min(StoreEntry * e) +statCounters(StoreEntry * e) { -#if NOT_YET statCountersDump(e); - storeAppendPrintf(e, "\n"); -#endif +} + +void +statAvg5min(StoreEntry * e) +{ statAvgDump(e, 5); } void statAvg60min(StoreEntry * e) { -#if NOT_YET - statCountersDump(e); - storeAppendPrintf(e, "\n"); -#endif statAvgDump(e, 60); }