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,8 +7,9 @@ $logLinesMMDVM = getShortMMDVMLog();
$reverseLogLinesMMDVM = $logLinesMMDVM;
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
$lastHeard = getLastHeard($reverseLogLinesMMDVM, True);
$listElem = $lastHeard[0];
if ($listElem[6] == null) {
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>";
@ -22,7 +23,8 @@ if ($listElem[6] == null) {
}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");
?>