fixed idle processes filtering

1999-09-28  Radek Doulik  <rodo@praha.eridan.cz>

	* proclist.c (glibtop_get_proclist_s): fixed idle processes filtering
This commit is contained in:
Radek Doulik
1999-09-28 17:05:28 +00:00
committed by Radek Doulik
parent 16156b8e27
commit c285171500
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
1999-09-28 Radek Doulik <rodo@praha.eridan.cz>
* proclist.c (glibtop_get_proclist_s): fixed idle processes filtering
1999-07-29 Martin Baulig <martin@home-of-linux.org> 1999-07-29 Martin Baulig <martin@home-of-linux.org>
* proctime.c (glibtop_get_proctime_s): Don't provide `rtime' * proctime.c (glibtop_get_proctime_s): Don't provide `rtime'

View File

@@ -158,7 +158,7 @@ glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
if (which & GLIBTOP_EXCLUDE_IDLE) { if (which & GLIBTOP_EXCLUDE_IDLE) {
glibtop_get_proc_state_s (server, &procstate, pid); glibtop_get_proc_state_s (server, &procstate, pid);
if (procstate.flags & (1L << GLIBTOP_PROC_STATE_STATE)) if (procstate.flags & (1L << GLIBTOP_PROC_STATE_STATE))
if (procstate.state != 'R') continue; if (!(procstate.state & GLIBTOP_PROCESS_RUNNING)) continue;
} }
if (which & GLIBTOP_EXCLUDE_SYSTEM) { if (which & GLIBTOP_EXCLUDE_SYSTEM) {