]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
added "counters" cachemgr operation
authorwessels <>
Fri, 13 Feb 1998 06:52:13 +0000 (06:52 +0000)
committerwessels <>
Fri, 13 Feb 1998 06:52:13 +0000 (06:52 +0000)
src/enums.h
src/protos.h
src/stat.cc

index a709cc3a2f82733229cb55fb939071e393a34910..6b02b40b3cefc5e7d56ae1a7b50aeb77a400add7 100644 (file)
@@ -150,6 +150,7 @@ typedef enum {
     MGR_STOREDIR,
     MGR_CBDATA,
     MGR_PCONN,
+    MGR_COUNTERS,
     MGR_5MIN,
     MGR_60MIN,
     MGR_MEM,
index e17963261ce14e8e5bcfdda4968634c7c48a9c56..2415f4c6d48fb1ec3c8c9bbf7a9fa38d35aaf300 100644 (file)
@@ -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;
 
index eba57cb5017db842a9204351df9c31a6ea6da462..59089830292a4d124368930fceeca51c3130cf63 100644 (file)
@@ -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);
 }