summaryrefslogtreecommitdiff
path: root/utils/prometheus-node-exporter-lua
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-09-24 23:01:29 +0200
committerEtienne Champetier <champetier.etienne@gmail.com>2021-09-24 18:10:25 -0400
commit093f3443ce74bde451a706abf8bb21ba33f52764 (patch)
tree6e74ead75d7ea2b7b64be96d51e03968e6346585 /utils/prometheus-node-exporter-lua
parent81b00bd6ab522f24ae91b073cd98af63a4eb0ba6 (diff)
prometheus-node-exporter-lua: fix broken control flow
Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
Diffstat (limited to 'utils/prometheus-node-exporter-lua')
-rw-r--r--utils/prometheus-node-exporter-lua/Makefile2
-rw-r--r--utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/prometheus-node-exporter-lua/Makefile b/utils/prometheus-node-exporter-lua/Makefile
index fb3fa682f..d39a5dfe0 100644
--- a/utils/prometheus-node-exporter-lua/Makefile
+++ b/utils/prometheus-node-exporter-lua/Makefile
@@ -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>
diff --git a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua
index a176b02e8..f843dda18 100644
--- a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua
+++ b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua
@@ -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