From: wessels <> Date: Wed, 25 Feb 1998 06:26:39 +0000 (+0000) Subject: put back 60min averages X-Git-Tag: SQUID_3_0_PRE1~4002 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45eb7f49f4e3b0f69dc1a0a7d9f33fcc6338db3d;p=thirdparty%2Fsquid.git put back 60min averages --- diff --git a/src/stat.cc b/src/stat.cc index 70a276633d..568143b5f5 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.205 1998/02/24 21:43:45 wessels Exp $ + * $Id: stat.cc,v 1.206 1998/02/24 23:26:39 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -127,6 +127,7 @@ static OBJH info_get; static OBJH statFiledescriptors; static OBJH statCounters; static OBJH statAvg5min; +static OBJH statAvg60min; #ifdef XMALLOC_STATISTICS static void info_get_mallstat(int, int, StoreEntry *); @@ -135,7 +136,7 @@ static void info_get_mallstat(int, int, StoreEntry *); /* * An hour's worth, plus the 'current' counter */ -#define N_COUNT_HIST 6 +#define N_COUNT_HIST 61 StatCounters CountHist[N_COUNT_HIST]; static int NCountHist = 0; @@ -767,6 +768,9 @@ statInit(void) cachemgrRegister("5min", "5 Minute Average of Counters", statAvg5min, 0); + cachemgrRegister("60min", + "60 Minute Average of Counters", + statAvg60min, 0); } static void @@ -798,6 +802,12 @@ statAvg5min(StoreEntry * e) statAvgDump(e, 5); } +void +statAvg60min(StoreEntry * e) +{ + statAvgDump(e, 60); +} + void statLogHistInit(StatLogHist * H, double min, double max) {