fixed high load with last commit

This commit is contained in:
dg9vh 2017-03-22 21:42:29 +00:00
parent 3a84ae674b
commit 5666e82157
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ $logLinesMMDVM = getMMDVMLog();
$reverseLogLinesMMDVM = $logLinesMMDVM;
rsort($reverseLogLinesMMDVM);
if ($_GET['section'] == "mode") {
$mode = getActualMode(getLastHeard($reverseLogLinesMMDVM, FALSE), $mmdvmconfigs);
$mode = getActualMode(getLastHeard($reverseLogLinesMMDVM, TRUE), $mmdvmconfigs);
echo $mode;
}
if ($_GET['section'] == "lastHeard") {

View file

@ -473,7 +473,7 @@ function getHeardList($logLines, $onlyLast) {
$rssi = "";
$ts1alias = "---";
$ts2alias = "---";
if ($onlyLast && count($heardList )> 4) {
if ($onlyLast && count($heardList )> 20) {
return $heardList;
}
}