From 78748654dbc38ba29b27ecd3ff7b27b75ad1a83b Mon Sep 17 00:00:00 2001 From: CT2JAY Date: Mon, 20 Feb 2017 11:36:23 +0000 Subject: [PATCH] You really need 100 lines with the egrep already filtering the log? - I've tested with 20 with sucess --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 47ea34f..b0abd61 100644 --- a/include/functions.php +++ b/include/functions.php @@ -196,7 +196,7 @@ function getMMDVMLog() { function getShortMMDVMLog() { // Open Logfile and copy loglines into LogLines-Array() $logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log"; - $logLines = explode("\n", `egrep -h "from|end|watchdog|lost|Alias|0000" $logPath | tail -100`); + $logLines = explode("\n", `egrep -h "from|end|watchdog|lost|Alias|0000" $logPath | tail -20`); return $logLines; }