mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
dpinger: wrong scope for $settings
This commit is contained in:
parent
548b881228
commit
a7b528be2b
@ -352,9 +352,9 @@ function dpinger_status($verbose = false)
|
||||
$r['latency_avg'] = round($r['latency_avg'] / 1000, 1);
|
||||
$r['status'] = $status[$gwname]['status'];
|
||||
|
||||
if ($r['status'] != 'force_down') {
|
||||
$settings = dpinger_defaults();
|
||||
$settings = dpinger_defaults();
|
||||
|
||||
if ($r['status'] != 'force_down') {
|
||||
$keys = array('latencylow', 'latencyhigh', 'losslow', 'losshigh');
|
||||
|
||||
/* Replace default values by user-defined */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user