summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-06-04 12:37:15 +0200
committersmos <seth.mos@dds.nl>2012-06-04 12:37:15 +0200
commit603f19f007149348639c9e09366881ea95b28aa4 (patch)
treef9a21350e36dcaee88d5f52825af401d258ede26 /etc/inc/gwlb.inc
parent4a67fc61ad854691252b5239116a0aec8905991e (diff)
downloadpfsense-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 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index f4a281a..9ebdf43 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -286,8 +286,8 @@ function return_gateways_status($byname = false) {
$status[$target]['srcip'] = $info[1];
$status[$target]['name'] = $info[2];
$status[$target]['lastcheck'] = $info[5] ? date('r', $info[5]) : date('r');
- $status[$target]['delay'] = empty($info[6]) ? 0 : $info[6];
- $status[$target]['loss'] = empty($info[7]) ? "0.0%" : $info[7] . "";
+ $status[$target]['delay'] = empty($info[6]) ? "0ms" : round($info[6], 1) ."ms" ;
+ $status[$target]['loss'] = empty($info[7]) ? "0.0%" : round($info[7], 1) . "%";
$status[$target]['status'] = trim($info[8]);
}
OpenPOWER on IntegriCloud