summaryrefslogtreecommitdiff
path: root/doc/reference.texi
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-05-16 17:25:58 +0000
committerMartin Baulig <martin@src.gnome.org>1999-05-16 17:25:58 +0000
commit62824e15370f16108867bce987543d22ac3d1fc0 (patch)
treec55d75d355ecd849b56967b795b17b83ed49ac24 /doc/reference.texi
parent36e7d3133bf4473a32d1caffe0185dc94785260a (diff)
downloadlibgtop-62824e15370f16108867bce987543d22ac3d1fc0.tar.gz
Use conditionals for glibtop_cpu.
Diffstat (limited to 'doc/reference.texi')
-rw-r--r--doc/reference.texi7
1 files changed, 7 insertions, 0 deletions
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{<glibtop/limits.h>}) 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