use faster sorting
This commit is contained in:
parent
d44c2623a0
commit
6862fcb60a
2 changed files with 5 additions and 3 deletions
|
@ -388,7 +388,7 @@ function getHeardList($logLines, $onlyLast) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$timestamp = substr($logLine, 3, 19);
|
$timestamp = substr($logLine, 3, 23);
|
||||||
$mode = substr($logLine, 27, strpos($logLine,",") - 27);
|
$mode = substr($logLine, 27, strpos($logLine,",") - 27);
|
||||||
if ($topos = strpos($logLine, "to follow)")) {
|
if ($topos = strpos($logLine, "to follow)")) {
|
||||||
$topos = strpos($logLine, "to", $topos+1);
|
$topos = strpos($logLine, "to", $topos+1);
|
||||||
|
|
|
@ -11,7 +11,8 @@ showLapTime("getMMDVMLog");
|
||||||
showLapTime("getNames");
|
showLapTime("getNames");
|
||||||
//$_SESSION['logLinesMMDVM'] = $logLinesMMDVM;
|
//$_SESSION['logLinesMMDVM'] = $logLinesMMDVM;
|
||||||
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
||||||
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
//array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
||||||
|
rsort($reverseLogLinesMMDVM);
|
||||||
showLapTime("array_multisort");
|
showLapTime("array_multisort");
|
||||||
//$_SESSION['reverseLogLinesMMDVM'] = $reverseLogLinesMMDVM;
|
//$_SESSION['reverseLogLinesMMDVM'] = $reverseLogLinesMMDVM;
|
||||||
$lastHeard = getLastHeard($reverseLogLinesMMDVM, FALSE);
|
$lastHeard = getLastHeard($reverseLogLinesMMDVM, FALSE);
|
||||||
|
@ -22,7 +23,8 @@ if (defined("ENABLEYSFGATEWAY")) {
|
||||||
$logLinesYSFGateway = getYSFGatewayLog();
|
$logLinesYSFGateway = getYSFGatewayLog();
|
||||||
showLapTime("getYSFGatewayLog");
|
showLapTime("getYSFGatewayLog");
|
||||||
$reverseLogLinesYSFGateway = $logLinesYSFGateway;
|
$reverseLogLinesYSFGateway = $logLinesYSFGateway;
|
||||||
array_multisort($reverseLogLinesYSFGateway,SORT_DESC);
|
//array_multisort($reverseLogLinesYSFGateway,SORT_DESC);
|
||||||
|
rsort($reverseLogLinesYSFGateway);
|
||||||
showLapTime("array_multisort");
|
showLapTime("array_multisort");
|
||||||
$activeYSFReflectors = getActiveYSFReflectors();
|
$activeYSFReflectors = getActiveYSFReflectors();
|
||||||
showLapTime("getActiveYSFReflectors");
|
showLapTime("getActiveYSFReflectors");
|
||||||
|
|
Loading…
Reference in a new issue