*** empty log message ***
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user