From d60d892385735ef274278cf63d363917eb3e6361 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 26 Oct 2011 21:23:37 +0000 Subject: libs/sys: recent busybox versions changed top output from %MEM to %VSZ, fix luci.sys.process.list() accordingly --- libs/sys/luasrc/sys.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index f07430474..f9b253e76 100644 --- a/libs/sys/luasrc/sys.lua +++ b/libs/sys/luasrc/sys.lua @@ -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 -- cgit v1.2.3