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.
This commit is contained in:
committed by
Martin Baulig
parent
9d564134de
commit
a331fb8e03
@@ -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 */
|
||||
|
Reference in New Issue
Block a user