Fix selecting processes by uid, which was broken in the previous commit.
This commit is contained in:
parent
ba2396cd27
commit
a578eed9af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131617
@ -563,7 +563,7 @@ get_process_info(si, sel, compare)
|
||||
process_states[(unsigned char) pp->ki_stat]++;
|
||||
if ((pp->ki_stat != SZOMB) &&
|
||||
(displaymode == DISP_CPU &&
|
||||
(show_idle || (pp->ki_pctcpu != 0) || pp->ki_stat == SRUN)) ||
|
||||
(show_idle || (pp->ki_pctcpu != 0) || pp->ki_stat == SRUN)) &&
|
||||
(show_idle || (displaymode == DISP_IO && p_io != 0)) &&
|
||||
(!show_uid || pp->ki_ruid == (uid_t)sel->uid))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user