You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if speed ~= nil and tonumber(speed) >= 0 then causes
/usr/lib/lua/prometheus-collectors/netclass.lua:36: attempt to compare number with nil
when speed is an empty string, because tonumber('') = nil and nil >= 0 is invalid. Is only an issue on these d-link switches, not linksys wrt3200 router or BT homehub5 accesspoint.
The text was updated successfully, but these errors were encountered:
Maintainer: @champtar
Environment: RTL8382, D-Link DGS-1210-16, Openwrt 23.05.4; and RTL8380, D-Link DGS-1210-10MP F, Openwrt 23.05.5
Description:
Log noise and missing metrics caused at:
packages/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netclass.lua
Lines 36 to 38 in bbc02fa
if speed ~= nil and tonumber(speed) >= 0 then
causeswhen
speed
is an empty string, becausetonumber('') = nil
andnil >= 0
is invalid. Is only an issue on these d-link switches, not linksys wrt3200 router or BT homehub5 accesspoint.The text was updated successfully, but these errors were encountered: