From 6a0fb117e5e3ce55f0c89f9bfdff7b04c87c827f Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 5 May 2021 21:18:43 +0100 Subject: [PATCH] fixed tabs vs spaces --- plugins/telegraf_pfifgw.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/telegraf_pfifgw.php b/plugins/telegraf_pfifgw.php index 9f0cd72..2dd5a14 100755 --- a/plugins/telegraf_pfifgw.php +++ b/plugins/telegraf_pfifgw.php @@ -77,10 +77,10 @@ if($debug){ 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 - + $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"]; @@ -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", $host, $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, $source, $defaultgw,