TXInfo now working with 2 timeslots...

This commit is contained in:
dg9vh 2016-09-13 19:36:42 +00:00
parent 9c82c45fc6
commit 5c7ed429de
4 changed files with 23 additions and 21 deletions

View file

@ -127,7 +127,7 @@ function getShortMMDVMLog() {
// Open Logfile and copy loglines into LogLines-Array()
$logPath = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log";
$logLines = explode("\n", `tail -n10 $logPath`);
$logLines = explode("\n", `tail -n100 $logPath`);
return $logLines;
}
@ -287,7 +287,7 @@ function getHeardList($logLines, $onlyLast) {
$duration = "";
$loss ="";
$ber = "";
if ($onlyLast) {
if ($onlyLast && count($heardList )> 4) {
return $heardList;
}
}

View file

@ -21,8 +21,8 @@
<th>Source</th>
</tr>
</thead>
<tbody>
<tr id="txline">
<tbody id="txline">
<!--<tr >
<td></td>
<td></td>
<td></td>
@ -36,7 +36,7 @@
<td></td>
<td></td>
<td></td>
</tr>
</tr>-->
</tbody>
</table>
</div>

View file

@ -7,22 +7,24 @@ $logLinesMMDVM = getShortMMDVMLog();
$reverseLogLinesMMDVM = $logLinesMMDVM;
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
$lastHeard = getLastHeard($reverseLogLinesMMDVM, True);
$listElem = $lastHeard[0];
if ($listElem[6] == null) {
echo"<td class=\"nowrap\">$listElem[0]</td>";
echo"<td class=\"nowrap\">$listElem[1]</td>";
echo"<td class=\"nowrap\">$listElem[2]</td>";
if (defined("ENABLEXTDLOOKUP")) {
echo "<td class=\"nowrap\">".getName($listElem[2])."</td>";
}
echo"<td class=\"nowrap\">$listElem[3]</td>";
echo"<td class=\"nowrap\">$listElem[4]</td>";
if ($listElem[5] == "RF"){
echo "<td class=\nowrap\"><span class=\"label label-success\">RF</span></td>";
}else{
echo"<td class=\"nowrap\">$listElem[5]</td>";
foreach ($lastHeard as $listElem) {
echo "<tr>";
if ($listElem[6] == null) {
echo"<td class=\"nowrap\">$listElem[0]</td>";
echo"<td class=\"nowrap\">$listElem[1]</td>";
echo"<td class=\"nowrap\">$listElem[2]</td>";
if (defined("ENABLEXTDLOOKUP")) {
echo "<td class=\"nowrap\">".getName($listElem[2])."</td>";
}
echo"<td class=\"nowrap\">$listElem[3]</td>";
echo"<td class=\"nowrap\">$listElem[4]</td>";
if ($listElem[5] == "RF"){
echo "<td class=\nowrap\"><span class=\"label label-success\">RF</span></td>";
}else{
echo"<td class=\"nowrap\">$listElem[5]</td>";
}
}
echo "</tr>";
}
?>

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20160911-1");
define("VERSION", "201609113-1");
?>