*** empty log message ***

This commit is contained in:
Martin Baulig
1998-09-09 15:32:44 +00:00
parent a331fb8e03
commit 88c34d1415
2 changed files with 2 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
1998-09-09 Martin Baulig <baulig@Stud.Informatik.uni-trier.de> 1998-09-09 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
* sysdeps/linux/ChangeLog: New file.
* glibtop.h (glibtop): Added `ncpu'. This is zero for single processor * glibtop.h (glibtop): Added `ncpu'. This is zero for single processor
systems and the number of CPUs otherwise. systems and the number of CPUs otherwise.

View File

@@ -85,17 +85,10 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
#if HAVE_LIBGTOP_SMP #if HAVE_LIBGTOP_SMP
for (i = 0; i < GLIBTOP_NCPU; i++) { for (i = 0; i < GLIBTOP_NCPU; i++) {
u_int64_t user, nice, sys, idle;
if (strncmp (p+1, "cpu", 3) || !isdigit (p [4])) if (strncmp (p+1, "cpu", 3) || !isdigit (p [4]))
break; break;
p += 6; 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_user [i] = strtoul (p, &p, 0);
buf->xcpu_nice [i] = strtoul (p, &p, 0); buf->xcpu_nice [i] = strtoul (p, &p, 0);
buf->xcpu_sys [i] = strtoul (p, &p, 0); buf->xcpu_sys [i] = strtoul (p, &p, 0);