]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
register statUtilization()
authorwessels <>
Thu, 5 Mar 1998 07:10:30 +0000 (07:10 +0000)
committerwessels <>
Thu, 5 Mar 1998 07:10:30 +0000 (07:10 +0000)
src/stat.cc

index 650be89fe6d4da05e9174933a543d633267f1709..50fbb46bd3610d0d65dc7f5ec28348de890d284f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stat.cc,v 1.211 1998/03/04 23:52:37 wessels Exp $
+ * $Id: stat.cc,v 1.212 1998/03/05 00:10:30 wessels Exp $
  *
  * DEBUG: section 18    Cache Manager Statistics
  * AUTHOR: Harvest Derived
@@ -126,6 +126,7 @@ static OBJH statFiledescriptors;
 static OBJH statCounters;
 static OBJH statAvg5min;
 static OBJH statAvg60min;
+static OBJH statUtilization;
 
 #ifdef XMALLOC_STATISTICS
 static void info_get_mallstat(int, int, StoreEntry *);
@@ -137,7 +138,7 @@ static StatCounters CountHourHist[N_COUNT_HOUR_HIST];
 static int NCountHourHist = 0;
 
 void
-stat_utilization_get(StoreEntry * e)
+statUtilization(StoreEntry * e)
 {
     storeAppendPrintf(e, "Cache Utilisation:\n");
     storeAppendPrintf(e, "\n");
@@ -776,6 +777,9 @@ statInit(void)
     cachemgrRegister("60min",
        "60 Minute Average of Counters",
        statAvg60min, 0);
+    cachemgrRegister("utilization",
+       "Cache Utilization",
+       statUtilization, 0);
 }
 
 static void