]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Limit the content of the squidguard log file to the date of the day being processed.
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 26 Jun 2009 12:30:47 +0000 (12:30 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 26 Jun 2009 12:30:47 +0000 (12:30 +0000)
squidguard_log.c

index 68f0a87abcecf36c5697bb3c9ab1b93f8e21ded6..e1276e44f6b94a1d534ca3770f147b8277fc3fec 100644 (file)
@@ -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;
       }