Fixed luci.util.dumptable again
This commit is contained in:
parent
8b28f46eea
commit
8f03192ce4
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ function dumptable(t, maxdepth, i, seen)
|
||||||
|
|
||||||
for k,v in pairs(t) do
|
for k,v in pairs(t) do
|
||||||
perror(string.rep("\t", i) .. tostring(k) .. "\t" .. tostring(v))
|
perror(string.rep("\t", i) .. tostring(k) .. "\t" .. tostring(v))
|
||||||
if type(v) == "table" and i < maxdepth then
|
if type(v) == "table" and (not maxdepth or i < maxdepth) then
|
||||||
if not seen[v] then
|
if not seen[v] then
|
||||||
seen[v] = true
|
seen[v] = true
|
||||||
dumptable(v, maxdepth, i+1, seen)
|
dumptable(v, maxdepth, i+1, seen)
|
||||||
|
|
Loading…
Reference in a new issue