From bcf281dee0131576b189136f7bf7190cadc69a39 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Sun, 5 Jun 2016 10:26:39 +0000 Subject: [PATCH] Revert "more speed improvements..." This reverts commit 388a9a3acc892767750d6c6ba6a7d6860c4b261a. reverting more performance tuning because of getting corrupted with reflector detection --- include/functions.php | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/include/functions.php b/include/functions.php index dba6e71..aeb3c2c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -104,9 +104,6 @@ function getLog() { function getHeardList($logLines) { //array_multisort($logLines,SORT_DESC); $heardList = array(); - $heardCalls = array(); - $counter = 0; - $counter2 = 0; $ts1duration = ""; $ts1loss = ""; $ts1ber = ""; @@ -230,28 +227,12 @@ function getHeardList($logLines) { } // Callsign or ID should be less than 8 chars long, otherwise it could be errorneous - if ( strlen($callsign) <= 10 ) { - if(!(array_search($callsign."#".$mode.$id, $heardCalls) > -1) && ($source == "Network")) { - array_push($heardCalls, $callsign."#".$mode.$id); - $counter++; - } - if (($counter <= LHLINES) && ($source == "Network")) { - array_push($heardList, array($timestamp, $mode, $callsign, $id, $target, $source, $duration, $loss, $ber)); - $duration = ""; - $loss =""; - $ber = ""; - } - - if (($counter2 <= 10) && ($source == "RF")) { - array_push($heardList, array($timestamp, $mode, $callsign, $id, $target, $source, $duration, $loss, $ber)); - $duration = ""; - $loss =""; - $ber = ""; - $counter2++; - } - + if ( strlen($callsign) < 10 ) { + array_push($heardList, array($timestamp, $mode, $callsign, $id, $target, $source, $duration, $loss, $ber)); + $duration = ""; + $loss =""; + $ber = ""; } - } return $heardList; }