diff options
author | jim-p <jimp@pfsense.org> | 2011-10-24 16:47:55 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-10-24 16:47:55 -0400 |
commit | fc4fa6de31b353951da241a2bf594ba82d4600eb (patch) | |
tree | 4bab5a8c816d9e407fff55bfa5e6b45edc49c4db /usr/local | |
parent | 8f09682259325005a4b4b8c8fb6d9c6d26ee7dc5 (diff) | |
download | pfsense-fc4fa6de31b353951da241a2bf594ba82d4600eb.zip pfsense-fc4fa6de31b353951da241a2bf594ba82d4600eb.tar.gz |
Show RTT and Loss on Status > Gateways, not just on the widget
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_gateways.php | 20 |
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 |