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 f07430474989c0a9c3ec3d32a689890e96308eca..f9b253e764c7063b52a72e91a1fa23c87087f33e 100644 (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