From 5666e8215710613a606cf6a65651b9c63bbd749f Mon Sep 17 00:00:00 2001 From: dg9vh Date: Wed, 22 Mar 2017 21:42:29 +0000 Subject: [PATCH] fixed high load with last commit --- ajax.php | 2 +- include/functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax.php b/ajax.php index d2e0ef8..c58e773 100644 --- a/ajax.php +++ b/ajax.php @@ -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") { diff --git a/include/functions.php b/include/functions.php index 13a07fb..bf905ca 100644 --- a/include/functions.php +++ b/include/functions.php @@ -473,7 +473,7 @@ function getHeardList($logLines, $onlyLast) { $rssi = ""; $ts1alias = "---"; $ts2alias = "---"; - if ($onlyLast && count($heardList )> 4) { + if ($onlyLast && count($heardList )> 20) { return $heardList; } }