/*
- * $Id: main.cc,v 1.267 1998/08/10 19:37:49 wessels Exp $
+ * $Id: main.cc,v 1.268 1998/08/11 20:07:03 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
asnFreeMemory();
clientdbFreeMemory();
httpHeaderCleanModule();
+ statFreeMemory();
#endif
memClean();
#if !XMALLOC_TRACE
/*
- * $Id: protos.h,v 1.244 1998/07/31 00:15:51 wessels Exp $
+ * $Id: protos.h,v 1.245 1998/08/11 20:07:04 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
extern void identStart(int, ConnStateData *, IDCB * callback, void *);
extern void statInit(void);
+extern void statFreeMemory(void);
extern double median_svc_get(int, int);
extern void pconnHistCount(int, int);
extern int stat5minClientRequests(void);
/*
- * $Id: stat.cc,v 1.274 1998/08/11 19:00:42 wessels Exp $
+ * $Id: stat.cc,v 1.275 1998/08/11 20:07:05 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
tvSubDsec(f->timestamp, current_time));
}
+void
+statFreeMemory(void)
+{
+ int i;
+ for (i = 0; i < N_COUNT_HIST; i++)
+ statCountersClean(&CountHist[i]);
+ for (i = 0; i < N_COUNT_HOUR_HIST; i++)
+ statCountersClean(&CountHourHist[i]);
+}
+
static void
statPeerSelect(StoreEntry * sentry)
{