Let the constants for the `state' field start at 1.
This commit is contained in:
@@ -44,12 +44,12 @@ BEGIN_LIBGTOP_DECLS
|
|||||||
#define GLIBTOP_MAX_PROC_STATE 9
|
#define GLIBTOP_MAX_PROC_STATE 9
|
||||||
|
|
||||||
/* Constants for the `state' field. */
|
/* Constants for the `state' field. */
|
||||||
#define GLIBTOP_PROCESS_RUNNING 0
|
#define GLIBTOP_PROCESS_RUNNING 1
|
||||||
#define GLIBTOP_PROCESS_INTERRUPTIBLE 1
|
#define GLIBTOP_PROCESS_INTERRUPTIBLE 2
|
||||||
#define GLIBTOP_PROCESS_UNINTERRUPTIBLE 2
|
#define GLIBTOP_PROCESS_UNINTERRUPTIBLE 4
|
||||||
#define GLIBTOP_PROCESS_ZOMBIE 4
|
#define GLIBTOP_PROCESS_ZOMBIE 8
|
||||||
#define GLIBTOP_PROCESS_STOPPED 8
|
#define GLIBTOP_PROCESS_STOPPED 16
|
||||||
#define GLIBTOP_PROCESS_SWAPPING 16
|
#define GLIBTOP_PROCESS_SWAPPING 32
|
||||||
|
|
||||||
typedef struct _glibtop_proc_state glibtop_proc_state;
|
typedef struct _glibtop_proc_state glibtop_proc_state;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user