some little performance tweaks
This commit is contained in:
parent
71db3237c3
commit
a803615177
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
define("VERSION", "20161013-1");
|
||||
define("VERSION", "20161013-2");
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue