prometheus-node-exporter-lua: fix broken control flow
authorMartin Weinelt <hexa@darmstadt.ccc.de>
Fri, 24 Sep 2021 21:01:29 +0000 (23:01 +0200)
committerEtienne Champetier <champetier.etienne@gmail.com>
Fri, 24 Sep 2021 22:10:25 +0000 (18:10 -0400)
Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua

index fb3fa682f7e59b49bcc3e1353d33d318685d0a1b..d39a5dfe098f25691771da9a7108ac5168416147 100644 (file)
@@ -4,7 +4,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=prometheus-node-exporter-lua
-PKG_VERSION:=2021.07.24
+PKG_VERSION:=2021.09.24
 PKG_RELEASE:=1
 
 PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
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