From 21fd55affac7b61d272549ac95fa21bc1ccae951 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Thu, 23 Jun 2011 13:57:33 +0000 Subject: [PATCH] Increase the limit on the number of days that can be processed If a log file (possibly restricted to a date range) ends up with more than 90 different dates, sarg aborts and complains that there are too many dates. That restriction is just a safety and isn't critical so it has been increased to a more reasonable value. --- include/conf.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/conf.h b/include/conf.h index 6a01414..3425c16 100755 --- a/include/conf.h +++ b/include/conf.h @@ -173,7 +173,11 @@ int mkstemps(char *template, int suffixlen); #define MAX_LOG_FILELEN 1024 #define MAX_REDIRECTOR_LOGS 64 #define MAX_REDIRECTOR_FILELEN 1024 -#define MAX_DATETIME_DAYS 90 +/*! +Arbitrary limit on the number of days that are accepted in the selected range of the log file. +Sarg will complain that there are too many days in the files if this limit is overrun. +*/ +#define MAX_DATETIME_DAYS 1000 #define REPORT_TYPE_USERS_SITES 0x0001UL #define REPORT_TYPE_SITE_USER_TIME_DATE 0x0002UL -- 2.47.2