prometheus-node-exporter-lua: fix broken control flow
[feed/packages.git] / utils / prometheus-node-exporter-lua / files / usr / lib / lua / prometheus-collectors / hostapd_stations.lua
index a176b02e8ce1faa55b898efa64ef6d8f94cbf313..f843dda18dec5e036a3a3c735fc9674b2f5b08d2 100644 (file)
@@ -19,7 +19,7 @@ local function get_wifi_interface_labels()
       local bss_idx = -1
       for line in hostapd_status:gmatch("[^\r\n]+") do
         local name, value = string.match(line, "(.+)=(.+)")
-        elseif name == "freq" then
+        if name == "freq" then
           hostapd["freq"] = value
         elseif name == "channel" then
           hostapd["channel"] = value