From: wessels <> Date: Thu, 5 Mar 1998 07:10:30 +0000 (+0000) Subject: register statUtilization() X-Git-Tag: SQUID_3_0_PRE1~3926 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9b5ead4ad8cb8b1752bf4468a8f81496840a0d8;p=thirdparty%2Fsquid.git register statUtilization() --- diff --git a/src/stat.cc b/src/stat.cc index 650be89fe6..50fbb46bd3 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -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