summaryrefslogtreecommitdiffhomepage
path: root/libs/sys/luasrc/sys.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-26 21:23:37 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-26 21:23:37 +0000
commitd60d892385735ef274278cf63d363917eb3e6361 (patch)
tree0fe7246536243b6d8447613124ecc9669b5bcf40 /libs/sys/luasrc/sys.lua
parenta4a93146515a28e6cc14560700c573b6cd788172 (diff)
libs/sys: recent busybox versions changed top output from %MEM to %VSZ, fix luci.sys.process.list() accordingly
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r--libs/sys/luasrc/sys.lua3
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