]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Generate redirector log even if -d is not given
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 12 Jul 2015 16:24:19 +0000 (18:24 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 12 Jul 2015 16:24:19 +0000 (18:24 +0200)
The redirector log would only be produced if a date range is given on the
command line or redirector_filter_out_date was set in sarg.conf.

This patch makes sarg use the whole redirector log if no date range is
provided.

redirector.c

index 22cefcdfca725ebb41736b6dba447fb8a0c618ca..4a606298afefc363f15bd317d92cebca915632f0 100644 (file)
@@ -180,7 +180,7 @@ static void parse_log(FILE *fp_ou,char *buf)
 
        //sprintf(warea,"%04d%02d%02d",year,mon,day);
 
-       if(RedirectorFilterOutDate) {
+       if (RedirectorFilterOutDate && (dfrom!=0 || duntil!=0)) {
                idata = year*10000+mon*100+day;
                if(idata < dfrom || idata > duntil)
                        return;