From 62824e15370f16108867bce987543d22ac3d1fc0 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sun, 16 May 1999 17:25:58 +0000 Subject: [PATCH] Use conditionals for glibtop_cpu. --- doc/reference.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/reference.texi b/doc/reference.texi index 9f26be40..93b42277 100644 --- a/doc/reference.texi +++ b/doc/reference.texi @@ -54,8 +54,13 @@ struct _glibtop_cpu xcpu_user [GLIBTOP_NCPU], xcpu_nice [GLIBTOP_NCPU], xcpu_sys [GLIBTOP_NCPU], +@ifset LIBGTOP-1-1 xcpu_idle [GLIBTOP_NCPU], xcpu_flags; +@end ifset +@ifclear LIBGTOP-1-1 + xcpu_idle [GLIBTOP_NCPU]; +@end ifclear @}; @end cartouche @end example @@ -91,12 +96,14 @@ except that they are arrays of @code{GLIBTOP_NCPU} (defined in @file{}) elements and contain one value for each CPU in the system. +@ifset LIBGTOP-1-1 @table @code @item xcpu_flags This is interpreted as a bit-field: on systems like Solaris, not all CPUs need to be running all the time, so we set the corresponding bit for each CPU that is currently running. @end table +@end ifset Please note that all of the cpu values are absolute values measured in certain units (to get seconds, divide them by @code{frequency}) since system