diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-10 20:36:21 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-10 20:37:21 -0400 |
commit | 716e49d0a062ef24b9f136237c4a06e2f5ebf78e (patch) | |
tree | 7321524d4efa540236a956572018fc4d1e59ab27 /usr/local/www/widgets | |
parent | ccfabf39337516a17adb75cfd487583f6c8cb349 (diff) | |
download | pfsense-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.php | 13 |
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> |