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

View file

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

View file

@ -7,8 +7,9 @@ $logLinesMMDVM = getShortMMDVMLog();
$reverseLogLinesMMDVM = $logLinesMMDVM; $reverseLogLinesMMDVM = $logLinesMMDVM;
array_multisort($reverseLogLinesMMDVM,SORT_DESC); array_multisort($reverseLogLinesMMDVM,SORT_DESC);
$lastHeard = getLastHeard($reverseLogLinesMMDVM, True); $lastHeard = getLastHeard($reverseLogLinesMMDVM, True);
$listElem = $lastHeard[0]; foreach ($lastHeard as $listElem) {
if ($listElem[6] == null) { echo "<tr>";
if ($listElem[6] == null) {
echo"<td class=\"nowrap\">$listElem[0]</td>"; echo"<td class=\"nowrap\">$listElem[0]</td>";
echo"<td class=\"nowrap\">$listElem[1]</td>"; echo"<td class=\"nowrap\">$listElem[1]</td>";
echo"<td class=\"nowrap\">$listElem[2]</td>"; echo"<td class=\"nowrap\">$listElem[2]</td>";
@ -22,7 +23,8 @@ if ($listElem[6] == null) {
}else{ }else{
echo"<td class=\"nowrap\">$listElem[5]</td>"; echo"<td class=\"nowrap\">$listElem[5]</td>";
} }
}
echo "</tr>";
} }
?> ?>

View file

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