From 9125afb8c61f8ea6c44f97da5996e6ed8c4400d9 Mon Sep 17 00:00:00 2001 From: CT2JAY Date: Mon, 20 Feb 2017 11:18:52 +0000 Subject: [PATCH 1/2] You don't need Alias|0000 since it not used on Last Heard List - getMMDVMLog --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index c8139b0..47ea34f 100644 --- a/include/functions.php +++ b/include/functions.php @@ -189,7 +189,7 @@ function getMMDVMLog() { // Open Logfile and copy loglines into LogLines-Array() $logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log"; //$logLines = explode("\n", `grep M: $logPath`); - $logLines = explode("\n", `egrep -h "from|end|watchdog|lost|Alias|0000" $logPath`); + $logLines = explode("\n", `egrep -h "from|end|watchdog|lost" $logPath`); return $logLines; } From 78748654dbc38ba29b27ecd3ff7b27b75ad1a83b Mon Sep 17 00:00:00 2001 From: CT2JAY Date: Mon, 20 Feb 2017 11:36:23 +0000 Subject: [PATCH 2/2] 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; }