diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog index 587d387d..65aa340b 100644 --- a/sysdeps/linux/ChangeLog +++ b/sysdeps/linux/ChangeLog @@ -1,3 +1,8 @@ +1999-07-29 Martin Baulig + + * proctime.c (glibtop_get_proctime_s): Don't provide `rtime' + any longer since we must not use `rtime = utime + stime'. + 1999-02-20 Martin Baulig * netload.c: Don't include for libc5 systems diff --git a/sysdeps/linux/proctime.c b/sysdeps/linux/proctime.c index 10d1e3b5..83ea92b8 100644 --- a/sysdeps/linux/proctime.c +++ b/sysdeps/linux/proctime.c @@ -28,9 +28,8 @@ static const unsigned long _glibtop_sysdeps_proc_time = (1L << GLIBTOP_PROC_TIME_UTIME) + (1L << GLIBTOP_PROC_TIME_CUTIME) + (1L << GLIBTOP_PROC_TIME_STIME) + (1L << GLIBTOP_PROC_TIME_CSTIME) + -(1L << GLIBTOP_PROC_TIME_RTIME) + (1L << GLIBTOP_PROC_TIME_FREQUENCY) + -(1L << GLIBTOP_PROC_TIME_TIMEOUT) + (1L << GLIBTOP_PROC_TIME_IT_REAL_VALUE) + -(1L << GLIBTOP_PROC_TIME_START_TIME); +(1L << GLIBTOP_PROC_TIME_FREQUENCY) + (1L << GLIBTOP_PROC_TIME_TIMEOUT) + +(1L << GLIBTOP_PROC_TIME_IT_REAL_VALUE) + (1L << GLIBTOP_PROC_TIME_START_TIME); static const unsigned long _glibtop_sysdeps_proc_time_smp = (1L << GLIBTOP_PROC_TIME_XCPU_UTIME) + (1L << GLIBTOP_PROC_TIME_XCPU_STIME); @@ -71,8 +70,6 @@ glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid) buf->cutime = strtoul (p, &p, 0); buf->cstime = strtoul (p, &p, 0); - buf->rtime = buf->utime + buf->stime; - p = skip_multiple_token (p, 2); buf->timeout = strtoul (p, &p, 0);