summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-09-28 22:33:25 +0000
committerMartin Baulig <martin@src.gnome.org>1999-09-28 22:33:25 +0000
commit3274a72cda4a3fbf50ef92bb5db11907c4735c98 (patch)
treefab4c99644126e7e436768a7f179807165dc0899
parentc285171500bb96dca038c9e12180ab45163d23cb (diff)
downloadlibgtop-3274a72cda4a3fbf50ef92bb5db11907c4735c98.tar.gz
Reverted incorrect commit from Radek Doulik.
Please make sure your changes at least compile without warnings; it should be clear that comparing an `unsigned' structure field with a character constant is wrong.
-rw-r--r--sysdeps/linux/ChangeLog4
-rw-r--r--sysdeps/linux/proclist.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog
index 19902d33..65aa340b 100644
--- a/sysdeps/linux/ChangeLog
+++ b/sysdeps/linux/ChangeLog
@@ -1,7 +1,3 @@
-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>
* proctime.c (glibtop_get_proctime_s): Don't provide `rtime'
diff --git a/sysdeps/linux/proclist.c b/sysdeps/linux/proclist.c
index d495a973..cb6a664d 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 & GLIBTOP_PROCESS_RUNNING)) continue;
+ if (procstate.state != 'R') continue;
}
if (which & GLIBTOP_EXCLUDE_SYSTEM) {