From: Frédéric Marchal Date: Fri, 26 Jun 2009 12:30:47 +0000 (+0000) Subject: Limit the content of the squidguard log file to the date of the day being processed. X-Git-Tag: v2_2_6~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28e2bf6584ad7549453438984a4e4d3de839c422;p=thirdparty%2Fsarg.git Limit the content of the squidguard log file to the date of the day being processed. --- diff --git a/squidguard_log.c b/squidguard_log.c index 68f0a87..e1276e4 100644 --- a/squidguard_log.c +++ b/squidguard_log.c @@ -144,7 +144,7 @@ void read_log(char *wentp, FILE *fp_ou) idata = atoi(wdata); if(strcmp(SquidguardIgnoreDate,"on") == 0) { - if(idata < dfrom && idata > duntil) + if(idata < dfrom || idata > duntil) continue; }