correct copy paste

This commit is contained in:
mark 2021-05-05 21:21:20 +01:00
parent 6a0fb117e5
commit 921d907937

View File

@ -65,13 +65,14 @@ foreach ($iflist as $ifname => $friendly) {
}
$gw_array = return_gateways_array();
//$gw_statuses is not guarranteed to contain the same number of gateways as $gw_array
$gw_statuses = return_gateways_status(true);
$debug = false;
if($debug){
print_r($a_gateways);
print_r($gateways_status);
print_r($gw_array);
print_r($gw_statuses);
}
foreach ($gw_array as $gw => $gateway) {
@ -79,8 +80,6 @@ foreach ($gw_array as $gw => $gateway) {
//take the name from the $a_gateways list
$name = $gateway["name"];
//$gateways_status is not guarranteed to contain the same number of gateways as $a_gateways
$monitor = $gw_statuses[$gw]["monitorip"];
$source = $gw_statuses[$gw]["srcip"];
$delay = $gw_statuses[$gw]["delay"];