diff options
author | Alexander Wilke <nachtfalkeaw@web.de> | 2012-10-27 16:37:09 +0300 |
---|---|---|
committer | Alexander Wilke <nachtfalkeaw@web.de> | 2012-10-27 16:37:09 +0300 |
commit | a03f9636a55c8154e33f8ab7a987dcd1800dfb1f (patch) | |
tree | 773cacdf94922a2adb5cfe36000fb7f1cfad51d6 /config | |
parent | 544809af8d37c4382346e4c1d9a12d056c633979 (diff) | |
download | pfsense-packages-a03f9636a55c8154e33f8ab7a987dcd1800dfb1f.tar.gz pfsense-packages-a03f9636a55c8154e33f8ab7a987dcd1800dfb1f.tar.bz2 pfsense-packages-a03f9636a55c8154e33f8ab7a987dcd1800dfb1f.zip |
SquidGuard: Adjust LOGSHOW_BUFSIZE
In squidguard_configurator.inc there is a daily rotation of the logile which cuts the last 1000 lines.
LOGSHOW_BUFSIZE limits this file again by the last 64KB. A file with ~1000 lines has size between 100KB and 300KB so I increased this buffer to 256KB to match these ~1000 lines.
I think this buffer size will work well even on low end systems, too.
Log rotation every day will do the rest.
Diffstat (limited to 'config')
-rw-r--r-- | config/squidGuard/squidguard.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/squidGuard/squidguard.inc b/config/squidGuard/squidguard.inc index 856e15b6..7b10536d 100644 --- a/config/squidGuard/squidguard.inc +++ b/config/squidGuard/squidguard.inc @@ -1264,7 +1264,7 @@ function squidguard_adt_safesrch_add($rewrite_item) # log dump function squidguard_logdump($filename, $lnoffset, $lncount, $reverse) { - define('LOGSHOW_BUFSIZE', '65536'); + define('LOGSHOW_BUFSIZE', '262144'); $cnt = ''; if (file_exists($filename)) { |