summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-10-24 16:47:55 -0400
committerjim-p <jimp@pfsense.org>2011-10-24 16:48:29 -0400
commitc6023b4ac9998697e8dbe39eddc2cb02151694ac (patch)
tree3de0d80a85ba956a079ff005de193a10a038bb02
parent230b3b1b6564063834d132d788484509c86eb39f (diff)
downloadpfsense-c6023b4ac9998697e8dbe39eddc2cb02151694ac.zip
pfsense-c6023b4ac9998697e8dbe39eddc2cb02151694ac.tar.gz
Show RTT and Loss on Status > Gateways, not just on the widget
-rwxr-xr-xusr/local/www/status_gateways.php20
1 files changed, 19 insertions, 1 deletions
diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php
index 0aa6e56..d47a8a9 100755
--- a/usr/local/www/status_gateways.php
+++ b/usr/local/www/status_gateways.php
@@ -72,7 +72,9 @@ include("head.inc");
<td width="10%" class="listhdrr"><?=gettext("Name"); ?></td>
<td width="10%" class="listhdrr"><?=gettext("Gateway"); ?></td>
<td width="10%" class="listhdrr"><?=gettext("Monitor"); ?></td>
- <td width="30%" class="listhdrr"><?=gettext("Status"); ?></td>
+ <td width="10%" class="listhdrr"><?=gettext("RTT"); ?></td>
+ <td width="10%" class="listhdrr"><?=gettext("Loss"); ?></td>
+ <td width="20%" class="listhdrr"><?=gettext("Status"); ?></td>
<td width="30%" class="listhdr"><?=gettext("Description"); ?></td>
</tr>
<?php foreach ($a_gateways as $gname => $gateway) {
@@ -91,6 +93,22 @@ include("head.inc");
echo $gateway['monitorip'];
?>
</td>
+ <td class="listr" align="center">
+ <?php if ($gateways_status[$gname])
+ echo $gateways_status[$gname]['delay'];
+ else
+ echo gettext("Gathering data");
+ ?>
+ <?php $counter++; ?>
+ </td>
+ <td class="listr" align="center">
+ <?php if ($gateways_status[$gname])
+ echo $gateways_status[$gname]['loss'];
+ else
+ echo gettext("Gathering data");
+ ?>
+ <?php $counter++; ?>
+ </td>
<td class="listr" >
<table border="0" cellpadding="0" cellspacing="2">
<?php
OpenPOWER on IntegriCloud