luci-app-statistics: irq plugin: handle numeric interrupt names
the `irq` plugin does not show the right data if the interrupt name is only numeric Signed-off-by: Ronny Kotzschmar <ro.ok@me.com>
This commit is contained in:
parent
8abdf7748e
commit
dc25703053
@ -251,8 +251,8 @@ function _string( s, n, nopad )
|
||||
if not nopad then pad = "\t" end
|
||||
|
||||
if s then
|
||||
if s:find("[^%d]") or n == "Port" then
|
||||
if not s:find("[^%w]") and n ~= "Port" then
|
||||
if s:find("[^%d]") or n == "Port" or n == "Irq" then
|
||||
if not s:find("[^%w]") and n ~= "Port" and n ~= "Irq" then
|
||||
str = pad .. n .. " " .. luci.util.trim(s)
|
||||
else
|
||||
str = pad .. n .. ' "' .. luci.util.trim(s) .. '"'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user