Merge pull request #2804 from tano-systems/pr/bootstrap-dashboard-fix
[oweals/luci.git] / modules / luci-base / luasrc / sys.lua
index bb4c67fe88319a1d93afb2394f8e8a59533bc04a..cd186c94d2bae1a8702108cea914701fe443297e 100644 (file)
@@ -443,11 +443,11 @@ function process.list()
 
        for line in ps do
                local pid, ppid, user, stat, vsz, mem, cpu, cmd = line:match(
-                       "^ *(%d+) +(%d+) +(%S.-%S) +([RSDZTW][W ][<N ]) +(%d+) +(%d+%%) +(%d+%%) +(.+)"
+                       "^ *(%d+) +(%d+) +(%S.-%S) +([RSDZTW][<NW ][<N ]) +(%d+) +(%d+%%) +(%d+%%) +(.+)"
                )
 
                local idx = tonumber(pid)
-               if idx then
+               if idx and not cmd:match("top %-bn1") then
                        data[idx] = {
                                ['PID']     = pid,
                                ['PPID']    = ppid,