Fixed issue with Current Mode

Current Mode was long time not shown correctly but not reported. Now it's
working correctly again.
This commit is contained in:
Kim Hübel 2020-09-21 15:19:57 +01:00
parent 0f44b9a196
commit b2209d116b
2 changed files with 3 additions and 3 deletions

View file

@ -246,7 +246,7 @@ function showMode($mode, $mmdvmconfigs) {
function getMMDVMLog() { function getMMDVMLog() {
// Open Logfile and copy loglines into LogLines-Array() // Open Logfile and copy loglines into LogLines-Array()
$logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log"; $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; return $logLines;
} }
@ -652,7 +652,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) {
$timestamp->add(new DateInterval('PT' . $hangtime . 'S')); $timestamp->add(new DateInterval('PT' . $hangtime . 'S'));
} else { } else {
$source = $listElem[6]; $source = $listElem[6];
if ($source === "Network") { if ($source === "Net") {
$hangtime = getConfigItem("General", "NetModeHang", $mmdvmconfigs); $hangtime = getConfigItem("General", "NetModeHang", $mmdvmconfigs);
} else { } else {
$hangtime = getConfigItem("General", "RFModeHang", $mmdvmconfigs); $hangtime = getConfigItem("General", "RFModeHang", $mmdvmconfigs);

View file

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