From b2209d116b47c96e59d0284a5033bccee2dd1848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20H=C3=BCbel?= Date: Mon, 21 Sep 2020 15:19:57 +0100 Subject: [PATCH] Fixed issue with Current Mode Current Mode was long time not shown correctly but not reported. Now it's working correctly again. --- include/functions.php | 4 ++-- version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/functions.php b/include/functions.php index 1f44792..f4900a7 100644 --- a/include/functions.php +++ b/include/functions.php @@ -246,7 +246,7 @@ 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", `egrep -h "end|watchdog|lost" $logPath`); + $logLines = explode("\n", `egrep -h "from|end|watchdog|lost" $logPath`); return $logLines; } @@ -652,7 +652,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) { $timestamp->add(new DateInterval('PT' . $hangtime . 'S')); } else { $source = $listElem[6]; - if ($source === "Network") { + if ($source === "Net") { $hangtime = getConfigItem("General", "NetModeHang", $mmdvmconfigs); } else { $hangtime = getConfigItem("General", "RFModeHang", $mmdvmconfigs); diff --git a/version.php b/version.php index 1791064..a04002a 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@