diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-26 21:23:37 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-26 21:23:37 +0000 |
commit | d60d892385735ef274278cf63d363917eb3e6361 (patch) | |
tree | 0fe7246536243b6d8447613124ecc9669b5bcf40 | |
parent | a4a93146515a28e6cc14560700c573b6cd788172 (diff) |
libs/sys: recent busybox versions changed top output from %MEM to %VSZ, fix luci.sys.process.list() accordingly
-rw-r--r-- | libs/sys/luasrc/sys.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index f074304749..f9b253e764 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 |