prometheus-node-exporter-lua: fix hostapd exporter
authorNick Hainke <redacted>
Thu, 29 Oct 2020 17:34:14 +0000 (18:34 +0100)
committerNick Hainke <redacted>
Thu, 29 Oct 2020 17:52:33 +0000 (18:52 +0100)
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 <redacted>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua

index 6e380ea9f32a9868d8279b36446b815960ff9b17..877ec234b3a2ac5828dc4c4c5ca179c0ba859f2b 100644 (file)
@@ -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>
index b9719c867f80071412252c02387520aecdec0d98..88a993c54fdf0768fd6221e3c3986dc2797cb00b 100644 (file)
@@ -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()
git clone https://git.99rst.org/PROJECT