From a803615177ba316687ee2c43e51f4fd7d1e9a0e0 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Thu, 13 Oct 2016 17:41:39 +0000 Subject: [PATCH] some little performance tweaks --- include/functions.php | 6 ++++-- version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/functions.php b/include/functions.php index e1c10c3..a5d9682 100644 --- a/include/functions.php +++ b/include/functions.php @@ -115,7 +115,8 @@ function showMode($mode, $mmdvmconfigs) { 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", `grep M: $logPath`); + $logLines = explode("\n", `egrep -h "from|end|watchdog|lost" $logPath`); return $logLines; } @@ -129,7 +130,8 @@ function getShortMMDVMLog() { function getYSFGatewayLog() { // Open Logfile and copy loglines into LogLines-Array() $logPath = YSFGATEWAYLOGPATH."/".YSFGATEWAYLOGPREFIX."-".date("Y-m-d").".log"; - $logLines = explode("\n", `egrep -h "D:|M:" $logPath`); + //$logLines = explode("\n", `egrep -h "D:|M:" $logPath`); + $logLines = explode("\n", `egrep -h "Starting|DISCONNECT|Connect|Automatic" $logPath`); return $logLines; } diff --git a/version.php b/version.php index 8b0cd94..424de07 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@