summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2020-10-29 18:34:14 +0100
committerNick Hainke <vincent@systemli.org>2020-10-29 18:52:33 +0100
commit2bc32a70789ea1274b06f13e07c11c99d2b312a6 (patch)
treeb29f13f50290d81c19fd9b1ac4273f33f4c305d3 /utils
parent9d9669c2ffe4ebf1d9ed520c1f3deb3fcfc10120 (diff)
prometheus-node-exporter-lua: fix hostapd exporter
Fix "hostapd_ubus_stations.lua". The bit-lib that is imported and the one specified as the dependency do not match. Use luabitop. Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/prometheus-node-exporter-lua/Makefile2
-rw-r--r--utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_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 6e380ea9f..877ec234b 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:=2020.10.10
+PKG_VERSION:=2020.10.29
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_ubus_stations.lua b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua
index b9719c867..88a993c54 100644
--- a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua
+++ b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua
@@ -1,5 +1,5 @@
local ubus = require "ubus"
-local bit = require "bit32"
+local bit = require "bit"
local function get_wifi_interfaces() -- based on hostapd_stations.lua
local u = ubus.connect()