diff --git a/include/functions.php b/include/functions.php index c8139b0..6a202ec 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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); if ($topos = strpos($logLine, "to follow)")) { $topos = strpos($logLine, "to", $topos+1); diff --git a/include/init.php b/include/init.php index ba76f44..6e384aa 100644 --- a/include/init.php +++ b/include/init.php @@ -11,7 +11,8 @@ showLapTime("getMMDVMLog"); showLapTime("getNames"); //$_SESSION['logLinesMMDVM'] = $logLinesMMDVM; $reverseLogLinesMMDVM = $logLinesMMDVM; -array_multisort($reverseLogLinesMMDVM,SORT_DESC); +//array_multisort($reverseLogLinesMMDVM,SORT_DESC); +rsort($reverseLogLinesMMDVM); showLapTime("array_multisort"); //$_SESSION['reverseLogLinesMMDVM'] = $reverseLogLinesMMDVM; $lastHeard = getLastHeard($reverseLogLinesMMDVM, FALSE); @@ -22,7 +23,8 @@ if (defined("ENABLEYSFGATEWAY")) { $logLinesYSFGateway = getYSFGatewayLog(); showLapTime("getYSFGatewayLog"); $reverseLogLinesYSFGateway = $logLinesYSFGateway; - array_multisort($reverseLogLinesYSFGateway,SORT_DESC); + //array_multisort($reverseLogLinesYSFGateway,SORT_DESC); + rsort($reverseLogLinesYSFGateway); showLapTime("array_multisort"); $activeYSFReflectors = getActiveYSFReflectors(); showLapTime("getActiveYSFReflectors");