From: Frédéric Marchal Date: Thu, 23 Jun 2011 13:57:33 +0000 (+0000) Subject: Increase the limit on the number of days that can be processed X-Git-Tag: v2.3.2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21fd55affac7b61d272549ac95fa21bc1ccae951;p=thirdparty%2Fsarg.git 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. --- 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