diff --git a/include/functions.php b/include/functions.php index 7142eef..b209347 100644 --- a/include/functions.php +++ b/include/functions.php @@ -127,7 +127,7 @@ function getShortMMDVMLog() { // Open Logfile and copy loglines into LogLines-Array() $logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log"; - $logLines = explode("\n", `tail -n10 $logPath`); + $logLines = explode("\n", `tail -n100 $logPath`); return $logLines; } @@ -287,7 +287,7 @@ function getHeardList($logLines, $onlyLast) { $duration = ""; $loss =""; $ber = ""; - if ($onlyLast) { + if ($onlyLast && count($heardList )> 4) { return $heardList; } } diff --git a/include/txinfo.php b/include/txinfo.php index 14dac70..6e02173 100644 --- a/include/txinfo.php +++ b/include/txinfo.php @@ -21,8 +21,8 @@ Source - - + + diff --git a/txinfo.php b/txinfo.php index 30a46c2..6c63ef7 100644 --- a/txinfo.php +++ b/txinfo.php @@ -7,22 +7,24 @@ $logLinesMMDVM = getShortMMDVMLog(); $reverseLogLinesMMDVM = $logLinesMMDVM; array_multisort($reverseLogLinesMMDVM,SORT_DESC); $lastHeard = getLastHeard($reverseLogLinesMMDVM, True); -$listElem = $lastHeard[0]; -if ($listElem[6] == null) { - echo"$listElem[0]"; - echo"$listElem[1]"; - echo"$listElem[2]"; - if (defined("ENABLEXTDLOOKUP")) { - echo "".getName($listElem[2]).""; - } - echo"$listElem[3]"; - echo"$listElem[4]"; - if ($listElem[5] == "RF"){ - echo "RF"; - }else{ - echo"$listElem[5]"; +foreach ($lastHeard as $listElem) { + echo ""; + if ($listElem[6] == null) { + echo"$listElem[0]"; + echo"$listElem[1]"; + echo"$listElem[2]"; + if (defined("ENABLEXTDLOOKUP")) { + echo "".getName($listElem[2]).""; + } + echo"$listElem[3]"; + echo"$listElem[4]"; + if ($listElem[5] == "RF"){ + echo "RF"; + }else{ + echo"$listElem[5]"; + } } + echo ""; } - ?> diff --git a/version.php b/version.php index f86e2d0..b72aa53 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@