diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/gwlb.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index 006a0b7..fc6a727 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -317,6 +317,9 @@ function get_dpinger_status($gwname) { $gw = $gateways_arr[$gwname]; } + $r['latency_avg'] = round($r['latency_avg']/1000, 3); + $r['latency_stddev'] = round($r['latency_stddev']/1000, 3); + $r['status'] = "none"; if (isset($gw) && isset($gw['force_down'])) { $r['status'] = "force_down"; @@ -334,9 +337,6 @@ function get_dpinger_status($gwname) { } } - $r['latency_avg'] = round($r['latency_avg']/1000, 3); - $r['latency_stddev'] = round($r['latency_stddev']/1000, 3); - return $r; } |