summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-10 20:36:21 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-10 20:37:21 -0400
commit716e49d0a062ef24b9f136237c4a06e2f5ebf78e (patch)
tree7321524d4efa540236a956572018fc4d1e59ab27 /usr/local/www/widgets
parentccfabf39337516a17adb75cfd487583f6c8cb349 (diff)
downloadpfsense-716e49d0a062ef24b9f136237c4a06e2f5ebf78e.zip
pfsense-716e49d0a062ef24b9f136237c4a06e2f5ebf78e.tar.gz
Report the RTT (delay) as well.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/gateways.widget.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php
index 277b192..4c3d2de 100644
--- a/usr/local/www/widgets/widgets/gateways.widget.php
+++ b/usr/local/www/widgets/widgets/gateways.widget.php
@@ -40,6 +40,7 @@ $gateways_status = return_gateways_status();
<tr>
<td width="10%" class="listhdrr">Name</td>
<td width="10%" class="listhdrr">Gateway</td>
+ <td width="30%" class="listhdrr">RTT</td>
<td width="30%" class="listhdrr">Status</td>
</tr>
<?php foreach ($a_gateways as $gateway) { ?>
@@ -50,13 +51,16 @@ $gateways_status = return_gateways_status();
<td class="listr" align="center" >
<?=$gateway['gateway'];?>
</td>
+ <td class="listr" align="center" >
+ <?=$gateways_status[$monitor]['delay'];?>
+ </td>
<td class="listr" >
<table border="0" cellpadding="0" cellspacing="2">
<?php
$monitor = $gateway['monitor'];
- if(empty($monitor)) {
- $monitor = $gateway['gateway'];
- }
+ if(empty($monitor)) {
+ $monitor = $gateway['gateway'];
+ }
switch($gateways_status[$monitor]['status']) {
case "None":
$online = "Online";
@@ -77,8 +81,7 @@ $gateways_status = return_gateways_status();
default:
$online = "No data";
}
-
- PRINT "<tr><td bgcolor=\"$bgcolor\" > $online </td></tr>";
+ echo "<tr><td bgcolor=\"$bgcolor\" > $online </td>";
?>
</table>
</td>
OpenPOWER on IntegriCloud