diff options
author | smos <seth.mos@dds.nl> | 2012-06-04 12:37:15 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-06-04 12:37:15 +0200 |
commit | 603f19f007149348639c9e09366881ea95b28aa4 (patch) | |
tree | f9a21350e36dcaee88d5f52825af401d258ede26 /usr/local/www/includes | |
parent | 4a67fc61ad854691252b5239116a0aec8905991e (diff) | |
download | pfsense-603f19f007149348639c9e09366881ea95b28aa4.zip pfsense-603f19f007149348639c9e09366881ea95b28aa4.tar.gz |
Some minor enhancements from renaming the Gathering Data to Pending.
When it doesn't exist in the array it's really unknown. Make that lightblue. show a ~
Diffstat (limited to 'usr/local/www/includes')
-rw-r--r-- | usr/local/www/includes/functions.inc.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php index 3ad1c5a..b6afbff 100644 --- a/usr/local/www/includes/functions.inc.php +++ b/usr/local/www/includes/functions.inc.php @@ -36,8 +36,8 @@ function get_gatewaystats() { $data .= ","; $isfirst = false; $data .= $gw['name'] . ","; - $data .= lookup_gateway_ip_by_name($gname) . ","; if ($gateways_status[$gname]) { + $data .= lookup_gateway_ip_by_name($gname) . ","; $gws = $gateways_status[$gname]; switch(strtolower($gws['status'])) { case "none": @@ -49,22 +49,25 @@ function get_gatewaystats() { $bgcolor = "lightcoral"; break; case "delay": - $online = "Warning: Latency"; + $online = "Latency"; $bgcolor = "khaki"; break; case "loss": - $online = "Warning: Packetloss"; + $online = "Packetloss"; $bgcolor = "khaki"; break; default: - $online = "Gathering data"; + $online = "Pending"; break; } } else { - $online = "Gathering data"; - $bgcolor = "lightgray"; + $data .= "~,"; + $gws['delay'] = "~"; + $gws['loss'] = "~"; + $online = "Unknown"; + $bgcolor = "lightblue"; } - $data .= ($online == "Gathering data") ? "{$online},{$online}," : "{$gws['delay']},{$gws['loss']},"; + $data .= ($online == "Pending") ? "{$online},{$online}," : "{$gws['delay']},{$gws['loss']},"; $data .= "<table><tr><td bgcolor=\"$bgcolor\" > $online </td></td></tr></table>"; } return $data; @@ -309,4 +312,4 @@ function get_interfacestatus() { return $data; } -?>
\ No newline at end of file +?> |