From 2c29838d57d159adc01765c1af0c7de5cfc3330c Mon Sep 17 00:00:00 2001 From: wessels <> Date: Thu, 5 Mar 1998 06:53:01 +0000 Subject: [PATCH] new vars for stat counters --- src/defines.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/defines.h b/src/defines.h index 4e3b0eee06..9f7c3dfc14 100644 --- a/src/defines.h +++ b/src/defines.h @@ -197,8 +197,15 @@ #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" -- 2.47.3