From a03f9636a55c8154e33f8ab7a987dcd1800dfb1f Mon Sep 17 00:00:00 2001 From: Alexander Wilke Date: Sat, 27 Oct 2012 16:37:09 +0300 Subject: 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. --- config/squidGuard/squidguard.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') 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)) { -- cgit v1.2.3