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> (cherry picked from commit dc2570305383a1014b39b44471c0b8c491e23026) Fixes #5719
This commit is contained in:
parent
2044c3439d
commit
8cac3cbc19
@ -251,8 +251,8 @@ function _string( s, n, nopad )
|
|||||||
if not nopad then pad = "\t" end
|
if not nopad then pad = "\t" end
|
||||||
|
|
||||||
if s then
|
if s then
|
||||||
if s:find("[^%d]") or n == "Port" then
|
if s:find("[^%d]") or n == "Port" or n == "Irq" then
|
||||||
if not s:find("[^%w]") and n ~= "Port" then
|
if not s:find("[^%w]") and n ~= "Port" and n ~= "Irq" then
|
||||||
str = pad .. n .. " " .. luci.util.trim(s)
|
str = pad .. n .. " " .. luci.util.trim(s)
|
||||||
else
|
else
|
||||||
str = pad .. n .. ' "' .. luci.util.trim(s) .. '"'
|
str = pad .. n .. ' "' .. luci.util.trim(s) .. '"'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user