libs/sys: recent busybox versions changed top output from %MEM to %VSZ, fix luci.sys.process.list() accordingly

This commit is contained in:
Jo-Philipp Wich 2011-10-26 21:23:37 +00:00
parent a4a9314651
commit d60d892385

View file

@ -526,6 +526,9 @@ function process.list()
end
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
break
end