diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2019-06-28 18:56:53 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2019-06-28 18:56:53 +0300 |
commit | 1c80eb196282c7119fd26bc03451f4d6ca3710ac (patch) | |
tree | 622692c16edf9a79e0c672f9037af5abeec74da5 /modules | |
parent | a562735e51a7c4c5ee9ed586db6a4b16f576ff13 (diff) |
luci-base: show niced processes on Status/Processes page
Modify the process status filter to allow also the processes
with a nice value to be visible on the Status/Processes page.
Filter out the top process itself.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/luasrc/sys.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/luasrc/sys.lua b/modules/luci-base/luasrc/sys.lua index bb4c67fe88..cd186c94d2 100644 --- a/modules/luci-base/luasrc/sys.lua +++ b/modules/luci-base/luasrc/sys.lua @@ -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, |