diff options
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 4 |
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]); } |