Count only filtered pids
If '-t' is specified and a filter such as '-U me' is specified, the pid total displayed is the total number of pids instead of the number of filtered pids.
This commit is contained in:
parent
952ae016d7
commit
4a835dff67
1 changed files with 1 additions and 1 deletions
2
smem
2
smem
|
|
@ -269,7 +269,7 @@ def showpids():
|
|||
return pidusername(p)
|
||||
|
||||
fields = dict(
|
||||
pid=('PID', lambda n: n, '% 5s', lambda x: len(p),
|
||||
pid=('PID', lambda n: n, '% 5s', lambda x: len(pt),
|
||||
'process ID'),
|
||||
user=('User', showuser, '%-8s', lambda x: len(dict.fromkeys(x)),
|
||||
'owner of process'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue