mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
gateway monitoring, don't report perfect when unknown, closes https://github.com/opnsense/core/issues/3408
and ditch return_gateways_array() usage for https://github.com/opnsense/core/issues/2279
This commit is contained in:
parent
2b03a9be13
commit
c67b276bf9
@ -244,10 +244,9 @@ function setup_gateways_monitor($verbose = false, $gwname = null)
|
||||
|
||||
function return_gateways_status()
|
||||
{
|
||||
$gateways_arr = return_gateways_array();
|
||||
$status = array();
|
||||
|
||||
foreach ($gateways_arr as $gwitem) {
|
||||
foreach (config_read_array('gateways', 'gateway_item') as $gwitem) {
|
||||
if (isset($gwitem['disabled'])) {
|
||||
continue;
|
||||
}
|
||||
@ -261,9 +260,9 @@ function return_gateways_status()
|
||||
$status[$gwitem['name']] = array(
|
||||
'name' => $gwitem['name'],
|
||||
'status' => $gwstatus,
|
||||
'stddev' => '0.0 ms',
|
||||
'delay' => '0.0 ms',
|
||||
'loss' => '0.0 %',
|
||||
'stddev' => '~',
|
||||
'delay' => '~',
|
||||
'loss' => '~',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user