fixed tabs vs spaces

This commit is contained in:
mark 2021-05-05 21:18:43 +01:00
parent 2c916e6ad7
commit 6a0fb117e5

View File

@ -77,9 +77,9 @@ if($debug){
foreach ($gw_array as $gw => $gateway) { 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 //$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"];
@ -120,7 +120,7 @@ foreach ($gw_array as $gw => $gateway) {
printf("gateways,host=%s,interface=%s,gateway_name=%s monitor=\"%s\",source=\"%s\",defaultgw=%s,gwdescr=\"%s\",delay=%s,stddev=%s,loss=%s,status=\"%s\",substatus=\"%s\"\n", printf("gateways,host=%s,interface=%s,gateway_name=%s monitor=\"%s\",source=\"%s\",defaultgw=%s,gwdescr=\"%s\",delay=%s,stddev=%s,loss=%s,status=\"%s\",substatus=\"%s\"\n",
$host, $host,
$interface, $interface,
$name,//name is required as it is possible to have 2 gateways on 1 interface. i.e. WAN_DHCP and WAN_DHCP6 $name,//name is required as it is possible to have 2 gateways on 1 interface. i.e. WAN_DHCP and WAN_DHCP6
$monitor, $monitor,
$source, $source,
$defaultgw, $defaultgw,