]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Increase the limit on the number of days that can be processed
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 23 Jun 2011 13:57:33 +0000 (13:57 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 23 Jun 2011 13:57:33 +0000 (13:57 +0000)
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

index 6a01414f6086c437366bc95f14b7f134bcb4126e..3425c16a3faacd09cdc0b28abc4b745534790422 100755 (executable)
@@ -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