projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applications/luci-statistics: cope with uci list values, thanks Bluse for reporting...
[project/luci.git]
/
applications
/
luci-statistics
/
root
/
usr
/
bin
/
stat-genconfig
diff --git
a/applications/luci-statistics/root/usr/bin/stat-genconfig
b/applications/luci-statistics/root/usr/bin/stat-genconfig
index
97c3628
..
171c1ae
100755
(executable)
--- a/
applications/luci-statistics/root/usr/bin/stat-genconfig
+++ b/
applications/luci-statistics/root/usr/bin/stat-genconfig
@@
-192,7
+192,6
@@
function _list_expand( c, l, nopad )
k = n:gsub("(%w+)s", "%1")
end
k = n:gsub("(%w+)s", "%1")
end
-
str = str .. _expand( c[n], k, nopad )
end
end
str = str .. _expand( c[n], k, nopad )
end
end
@@
-209,6
+208,13
@@
function _expand( s, n, nopad )
end
return str
end
return str
+
+ elseif type(s) == "table" then
+ local str = ""
+
+ for i, v in ipairs(s) do
+ str = str .. _string( v, n, nopad )
+ end
end
end
end
end
@@
-316,6
+322,12
@@
plugins = {
{ "Irqs" }
},
{ "Irqs" }
},
+ iwinfo = {
+ { },
+ { "IgnoreSelected" },
+ { "Interfaces" }
+ },
+
load = {
{ },
{ },
load = {
{ },
{ },
@@
-334,7
+346,11
@@
plugins = {
{ "Interfaces", "WatchAdds" }
},
{ "Interfaces", "WatchAdds" }
},
- memory = { },
+ memory = {
+ { },
+ { },
+ { }
+ },
netlink = {
{ },
netlink = {
{ },