correct copy paste
This commit is contained in:
parent
6a0fb117e5
commit
921d907937
@ -65,13 +65,14 @@ foreach ($iflist as $ifname => $friendly) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$gw_array = return_gateways_array();
|
$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);
|
$gw_statuses = return_gateways_status(true);
|
||||||
|
|
||||||
$debug = false;
|
$debug = false;
|
||||||
|
|
||||||
if($debug){
|
if($debug){
|
||||||
print_r($a_gateways);
|
print_r($gw_array);
|
||||||
print_r($gateways_status);
|
print_r($gw_statuses);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($gw_array as $gw => $gateway) {
|
foreach ($gw_array as $gw => $gateway) {
|
||||||
@ -79,8 +80,6 @@ foreach ($gw_array as $gw => $gateway) {
|
|||||||
//take the name from the $a_gateways list
|
//take the name from the $a_gateways list
|
||||||
$name = $gateway["name"];
|
$name = $gateway["name"];
|
||||||
|
|
||||||
//$gateways_status is not guarranteed to contain the same number of gateways as $a_gateways
|
|
||||||
|
|
||||||
$monitor = $gw_statuses[$gw]["monitorip"];
|
$monitor = $gw_statuses[$gw]["monitorip"];
|
||||||
$source = $gw_statuses[$gw]["srcip"];
|
$source = $gw_statuses[$gw]["srcip"];
|
||||||
$delay = $gw_statuses[$gw]["delay"];
|
$delay = $gw_statuses[$gw]["delay"];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user