some little performance tweaks

This commit is contained in:
dg9vh 2016-10-13 17:41:39 +00:00
parent 71db3237c3
commit a803615177
2 changed files with 5 additions and 3 deletions

View file

@ -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;
}

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20161013-1");
define("VERSION", "20161013-2");
?>