From: wessels <> Date: Thu, 5 Mar 1998 06:53:01 +0000 (+0000) Subject: new vars for stat counters X-Git-Tag: SQUID_3_0_PRE1~3930 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c29838d57d159adc01765c1af0c7de5cfc3330c;p=thirdparty%2Fsquid.git new vars for stat counters --- 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"