From be4c952542771040b146ffc11b1c0cac53f62627 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Wed, 29 Sep 1999 10:23:04 +0000 Subject: [PATCH] Reverted my commit which reverted Radek Doulik's change. Sorry for being stupid, but I run the diff in the wrong direction; his patch was absolutely correct. Martin --- sysdeps/linux/ChangeLog | 4 ++++ sysdeps/linux/proclist.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog index 65aa340b..19902d33 100644 --- a/sysdeps/linux/ChangeLog +++ b/sysdeps/linux/ChangeLog @@ -1,3 +1,7 @@ +1999-09-28 Radek Doulik + + * proclist.c (glibtop_get_proclist_s): fixed idle processes filtering + 1999-07-29 Martin Baulig * proctime.c (glibtop_get_proctime_s): Don't provide `rtime' diff --git a/sysdeps/linux/proclist.c b/sysdeps/linux/proclist.c index cb6a664d..d495a973 100644 --- a/sysdeps/linux/proclist.c +++ b/sysdeps/linux/proclist.c @@ -158,7 +158,7 @@ glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf, if (which & GLIBTOP_EXCLUDE_IDLE) { glibtop_get_proc_state_s (server, &procstate, pid); 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) {