Update telegraf_pfinterface.php

Missed a semicolon or two
This commit is contained in:
VictorRobellini
2020-04-05 01:12:55 -04:00
committed by GitHub
parent 1620b55cce
commit f6d7894343

View File

@@ -20,10 +20,10 @@ foreach ($iflist as $ifname => $friendly) {
$mac = get_interface_mac($realif); $mac = get_interface_mac($realif);
if (!isset($ipaddr)){ if (!isset($ipaddr)){
$ipaddr = 'Unassigned' $ipaddr = "Unassigned";
} }
if (!isset($mac)){ if (!isset($mac)){
$mac = 'Unavailable' $mac = "Unavailable";
} }
if (strtolower($ifstatus) == "up"){ if (strtolower($ifstatus) == "up"){
$ifstatus = 1; $ifstatus = 1;
@@ -51,4 +51,4 @@ foreach ($iflist as $ifname => $friendly) {
$ifstatus $ifstatus
); );
} }
?> ?>