mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
prometheus-node-exporter-lua: fix broken control flow
Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
committed by
Etienne Champetier
parent
81b00bd6ab
commit
093f3443ce
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user