diff options
author | k-ronny <78017977+k-ronny@users.noreply.github.com> | 2021-08-16 09:41:10 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2021-08-16 21:27:31 +0300 |
commit | dc2570305383a1014b39b44471c0b8c491e23026 (patch) | |
tree | c5d3002037a510d8dd60cb5e4e5b1e243a4357b6 /applications/luci-app-statistics/root | |
parent | 8abdf7748ef9f8a8630e2badcd86499d24254830 (diff) |
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>
Diffstat (limited to 'applications/luci-app-statistics/root')
-rwxr-xr-x | applications/luci-app-statistics/root/usr/bin/stat-genconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig index b03b547d48..fa59edc3a9 100755 --- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig @@ -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) .. '"' |