/*
- * $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
static OBJH statFiledescriptors;
static OBJH statCounters;
static OBJH statAvg5min;
+static OBJH statAvg60min;
#ifdef XMALLOC_STATISTICS
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;
cachemgrRegister("5min",
"5 Minute Average of Counters",
statAvg5min, 0);
+ cachemgrRegister("60min",
+ "60 Minute Average of Counters",
+ statAvg60min, 0);
}
static void
statAvgDump(e, 5);
}
+void
+statAvg60min(StoreEntry * e)
+{
+ statAvgDump(e, 60);
+}
+
void
statLogHistInit(StatLogHist * H, double min, double max)
{