Let the constants for the `state' field start at 1.

This commit is contained in:
Martin Baulig
1999-03-31 17:34:39 +00:00
parent ede4594dd9
commit 7011b04cb2

View File

@@ -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;