summaryrefslogtreecommitdiff
path: root/glibtop.h
diff options
context:
space:
mode:
authorMartin Baulig <baulig@Stud.Informatik.uni-trier.de>1998-09-09 15:19:24 +0000
committerMartin Baulig <martin@src.gnome.org>1998-09-09 15:19:24 +0000
commita331fb8e03c4ea9dcffdd6fb4ff527797776e0a3 (patch)
tree7d65e50572db09aca0151e2d465f137bc33dcd6d /glibtop.h
parent9d564134de6d54eba31b8f6bb593b8f4a99f2b66 (diff)
downloadlibgtop-a331fb8e03c4ea9dcffdd6fb4ff527797776e0a3.tar.gz
Added `ncpu'. This is zero for single processor systems and the number of
1998-09-09 Martin Baulig <baulig@Stud.Informatik.uni-trier.de> * glibtop.h (glibtop): Added `ncpu'. This is zero for single processor systems and the number of CPUs otherwise. * include/glibtop/cpu.h (glibtop_cpu): Added `xcpu_total', `xcpu_user', `xcpu_nice', `xcpu_sys' and `xcpu_idle'. (GLIBTOP_NCPU): #define this to 4.
Diffstat (limited to 'glibtop.h')
-rw-r--r--glibtop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/glibtop.h b/glibtop.h
index 6a32ae69..fa823375 100644
--- a/glibtop.h
+++ b/glibtop.h
@@ -50,6 +50,7 @@ struct _glibtop
int input [2]; /* Pipe client <- server */
int output [2]; /* Pipe client -> server */
int socket; /* Accepted connection of a socket */
+ int ncpu; /* Number of CPUs, zero if single-processor */
unsigned long os_version_code; /* Version code of the operating system */
const char *name; /* Program name for error messages */
const char *server_command; /* Command used to invoke server */