summaryrefslogtreecommitdiff
path: root/sysdeps/linux/cpu.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-09-09 15:32:44 +0000
committerMartin Baulig <martin@src.gnome.org>1998-09-09 15:32:44 +0000
commit88c34d141515407782e53b24e139b3648a37c764 (patch)
tree70f3b8330e07476caf7b74e4eae3abc82ac5be99 /sysdeps/linux/cpu.c
parenta331fb8e03c4ea9dcffdd6fb4ff527797776e0a3 (diff)
downloadlibgtop-88c34d141515407782e53b24e139b3648a37c764.tar.gz
*** empty log message ***
Diffstat (limited to 'sysdeps/linux/cpu.c')
-rw-r--r--sysdeps/linux/cpu.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sysdeps/linux/cpu.c b/sysdeps/linux/cpu.c
index d5cfd9d6..bd959d07 100644
--- a/sysdeps/linux/cpu.c
+++ b/sysdeps/linux/cpu.c
@@ -85,17 +85,10 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
#if HAVE_LIBGTOP_SMP
for (i = 0; i < GLIBTOP_NCPU; i++) {
- u_int64_t user, nice, sys, idle;
-
if (strncmp (p+1, "cpu", 3) || !isdigit (p [4]))
break;
p += 6;
- user = strtoul (p, &p, 0);
- nice = strtoul (p, &p, 0);
- sys = strtoul (p, &p, 0);
- idle = strtoul (p, &p, 0);
-
buf->xcpu_user [i] = strtoul (p, &p, 0);
buf->xcpu_nice [i] = strtoul (p, &p, 0);
buf->xcpu_sys [i] = strtoul (p, &p, 0);