more execution time improvement
This commit is contained in:
parent
b544a50718
commit
3640bbd8ac
3 changed files with 11 additions and 9 deletions
|
@ -102,7 +102,7 @@ function getLog() {
|
|||
// M: 2016-04-29 19:43:21.839 DMR Slot 2, received network voice header from DL1ESZ to TG 9
|
||||
// M: 2016-04-30 14:57:43.072 DMR Slot 2, received RF voice header from DG9VH to 5000
|
||||
function getHeardList($logLines) {
|
||||
array_multisort($logLines,SORT_DESC);
|
||||
//array_multisort($logLines,SORT_DESC);
|
||||
$heardList = array();
|
||||
$ts1duration = "";
|
||||
$ts1loss = "";
|
||||
|
@ -340,7 +340,7 @@ function getActualLink($logLines, $mode) {
|
|||
//M: 2016-05-02 07:04:10.504 D-Star link status set to "Verlinkt zu DCS002 S"
|
||||
//M: 2016-04-03 16:16:18.638 DMR Slot 2, received network voice header from 4000 to 2625094
|
||||
//M: 2016-04-03 19:30:03.099 DMR Slot 2, received network voice header from 4020 to 2625094
|
||||
array_multisort($logLines,SORT_DESC);
|
||||
//array_multisort($logLines,SORT_DESC);
|
||||
switch ($mode) {
|
||||
case "D-Star":
|
||||
if (isProcessRunning(IRCDDBGATEWAY)) {
|
||||
|
@ -386,7 +386,7 @@ function getActualReflector($logLines, $mode) {
|
|||
//M: 2016-05-02 07:04:10.504 D-Star link status set to "Verlinkt zu DCS002 S"
|
||||
//M: 2016-04-03 16:16:18.638 DMR Slot 2, received network voice header from 4000 to 2625094
|
||||
//M: 2016-04-03 19:30:03.099 DMR Slot 2, received network voice header from 4020 to 2625094
|
||||
array_multisort($logLines,SORT_DESC);
|
||||
//array_multisort($logLines,SORT_DESC);
|
||||
|
||||
foreach ($logLines as $logLine) {
|
||||
if(substr($logLine, 27, strpos($logLine,",") - 27) == "DMR Slot 2") {
|
||||
|
@ -407,5 +407,7 @@ function getActualReflector($logLines, $mode) {
|
|||
//Some basic inits
|
||||
$mmdvmconfigs = getMMDVMConfig();
|
||||
$logLines = getLog();
|
||||
$lastHeard = getLastHeard($logLines);
|
||||
$reverseLogLines = $logLines;
|
||||
array_multisort($reverseLogLines,SORT_DESC);
|
||||
$lastHeard = getLastHeard($reverseLogLines);
|
||||
?>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$localTXList = getHeardList($logLines);
|
||||
array_multisort($localTXList,SORT_DESC);
|
||||
$localTXList = getHeardList($reverseLogLines);
|
||||
//array_multisort($localTXList,SORT_DESC);
|
||||
|
||||
?>
|
||||
<div class="panel panel-default">
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
<?php
|
||||
echo"<tr>";
|
||||
echo"<td>".getActualMode($lastHeard, $mmdvmconfigs)."</td>";
|
||||
echo"<td>".getActualLink($logLines, "D-Star")."</td>";
|
||||
echo"<td>".getActualLink($logLines, "DMR Slot 1")."</td>";
|
||||
echo"<td>".getActualLink($logLines, "DMR Slot 2")."/". getActualReflector($logLines, "DMR Slot 2") ."</td>";
|
||||
echo"<td>".getActualLink($reverseLogLines, "D-Star")."</td>";
|
||||
echo"<td>".getActualLink($reverseLogLines, "DMR Slot 1")."</td>";
|
||||
echo"<td>".getActualLink($reverseLogLines, "DMR Slot 2")."/". getActualReflector($logLines, "DMR Slot 2") ."</td>";
|
||||
echo"</tr>\n";
|
||||
?>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in a new issue