]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
new vars for stat counters
authorwessels <>
Thu, 5 Mar 1998 06:53:01 +0000 (06:53 +0000)
committerwessels <>
Thu, 5 Mar 1998 06:53:01 +0000 (06:53 +0000)
src/defines.h

index 4e3b0eee0677f77f602c3d10a8ceb3bf1c077f9f..9f7c3dfc14c76161a559acb441e8ad795f695505 100644 (file)
 
 #define SKIP_BASIC_SZ ((size_t) 6)
 
-/* stat.c */
-#define N_COUNT_HIST 61
+#define COUNT_INTERVAL 60
+/*
+ * keep 60 minutes' worth of per-minute readings (+ current reading)
+ */
+#define N_COUNT_HIST (3600 / COUNT_INTERVAL) + 1
+/*
+ * keep 3 days' (72 hours) worth of hourly readings
+*/
+#define N_COUNT_HOUR_HIST (86400 * 3) / (60 * COUNT_INTERVAL)
 
 /* were to look for errors if config path fails */
 #define DEFAULT_SQUID_ERROR_DIR "/usr/local/squid/etc/errors"