diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-11 09:38:28 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-11 09:38:28 +0545 |
commit | 0aeb97d2563cca86e24100ce535489a5955069f9 (patch) | |
tree | 2ed9e1b5f2a2db73400807ac1a875aaefd84f67f /src | |
parent | c2d710cc3f94f67662385a4ce54b49fc9d4ea452 (diff) | |
download | pfsense-0aeb97d2563cca86e24100ce535489a5955069f9.zip pfsense-0aeb97d2563cca86e24100ce535489a5955069f9.tar.gz |
gwlb array key typo loss_interval
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 b01d87f..006a0b7 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -108,7 +108,7 @@ function start_dpinger($gateway) { ) . " "; $params .= "-l " . - (isset($gateway['loss_interval']) && is_numeric($gateway['loos_interval']) + (isset($gateway['loss_interval']) && is_numeric($gateway['loss_interval']) ? $gateway['loss_interval'] : $dpinger_defaults['loss_interval'] ) . " "; @@ -340,7 +340,7 @@ function get_dpinger_status($gwname) { return $r; } -/* return the status of the dpinger targets as a array */ +/* return the status of the dpinger targets as an array */ function return_gateways_status($byname = false) { global $config, $g; @@ -365,7 +365,7 @@ function return_gateways_status($byname = false) { $status[$target]['monitorip'] = $dpinger_status['targetip']; $status[$target]['srcip'] = $dpinger_status['srcip']; $status[$target]['name'] = $gwname; - $status[$target]['delay'] = empty($dpinger_status['latency_avg']) ? "0ms" : $dpinger_status['latency_avg'] ."ms"; + $status[$target]['delay'] = empty($dpinger_status['latency_avg']) ? "0ms" : $dpinger_status['latency_avg'] . "ms"; $status[$target]['loss'] = empty($dpinger_status['loss']) ? "0.0%" : round($dpinger_status['loss'], 1) . "%"; $status[$target]['status'] = $dpinger_status['status']; } |