libs/sys: recent busybox versions changed top output from %MEM to %VSZ, fix luci...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Oct 2011 21:23:37 +0000 (21:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Oct 2011 21:23:37 +0000 (21:23 +0000)
libs/sys/luasrc/sys.lua

index f074304..f9b253e 100644 (file)
@@ -526,6 +526,9 @@ function process.list()
                end
 
                k = luci.util.split(luci.util.trim(line), "%s+", nil, true)
                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
                if k[1] == "PID" then
                        break
                end