From: Frederic Marchal Date: Sun, 12 Jul 2015 16:24:19 +0000 (+0200) Subject: Generate redirector log even if -d is not given X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22774edd6523d566f539f4f633a6f276bfbd6224;p=thirdparty%2Fsarg.git Generate redirector log even if -d is not given 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. --- diff --git a/redirector.c b/redirector.c index 22cefcd..4a60629 100644 --- a/redirector.c +++ b/redirector.c @@ -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;