mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 04:04:35 +03:00
Enable OOM support unconditionally on Linux.
Read OOM data only if column is enabled. Make sort ordering more consistent. Closes #182.
This commit is contained in:
@ -14,6 +14,7 @@ in the source distribution for its full text.
|
||||
#define PROCESS_FLAG_LINUX_OPENVZ 0x0200
|
||||
#define PROCESS_FLAG_LINUX_VSERVER 0x0400
|
||||
#define PROCESS_FLAG_LINUX_CGROUP 0x0800
|
||||
#define PROCESS_FLAG_LINUX_OOM 0x1000
|
||||
|
||||
typedef enum UnsupportedProcessFields {
|
||||
FLAGS = 9,
|
||||
@ -70,9 +71,7 @@ typedef enum LinuxProcessFields {
|
||||
#ifdef HAVE_CGROUP
|
||||
CGROUP = 113,
|
||||
#endif
|
||||
#ifdef HAVE_OOM
|
||||
OOM = 114,
|
||||
#endif
|
||||
IO_PRIORITY = 115,
|
||||
LAST_PROCESSFIELD = 116,
|
||||
} LinuxProcessField;
|
||||
@ -116,9 +115,7 @@ typedef struct LinuxProcess_ {
|
||||
#ifdef HAVE_CGROUP
|
||||
char* cgroup;
|
||||
#endif
|
||||
#ifdef HAVE_OOM
|
||||
unsigned int oom;
|
||||
#endif
|
||||
} LinuxProcess;
|
||||
|
||||
#ifndef Process_isKernelThread
|
||||
|
Reference in New Issue
Block a user