libs/sys: recent busybox versions changed top output from %MEM to %VSZ, fix luci.sys.process.list() accordingly
This commit is contained in:
parent
a4a9314651
commit
d60d892385
1 changed files with 3 additions and 0 deletions
|
@ -526,6 +526,9 @@ function process.list()
|
||||||
end
|
end
|
||||||
|
|
||||||
k = luci.util.split(luci.util.trim(line), "%s+", nil, true)
|
k = luci.util.split(luci.util.trim(line), "%s+", nil, true)
|
||||||
|
if k[6] == "%VSZ" then
|
||||||
|
k[6] = "%MEM"
|
||||||
|
end
|
||||||
if k[1] == "PID" then
|
if k[1] == "PID" then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue