diff options
author | Martin Baulig <baulig@Stud.Informatik.uni-trier.de> | 1998-09-09 15:19:24 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-09-09 15:19:24 +0000 |
commit | a331fb8e03c4ea9dcffdd6fb4ff527797776e0a3 (patch) | |
tree | 7d65e50572db09aca0151e2d465f137bc33dcd6d /glibtop.h | |
parent | 9d564134de6d54eba31b8f6bb593b8f4a99f2b66 (diff) | |
download | libgtop-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |