mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-15 21:44:36 +03:00
no need to pad values; provide a default on machines without cgroup
This commit is contained in:
@ -65,6 +65,9 @@ typedef enum ProcessField_ {
|
||||
#ifdef HAVE_TASKSTATS
|
||||
RCHAR, WCHAR, SYSCR, SYSCW, RBYTES, WBYTES, CNCLWB, IO_READ_RATE, IO_WRITE_RATE, IO_RATE,
|
||||
#endif
|
||||
#ifdef HAVE_CGROUP
|
||||
CGROUP,
|
||||
#endif
|
||||
LAST_PROCESSFIELD
|
||||
} ProcessField;
|
||||
|
||||
@ -155,6 +158,9 @@ typedef struct Process_ {
|
||||
double io_rate_write_bps;
|
||||
unsigned long long io_rate_write_time;
|
||||
#endif
|
||||
#ifdef HAVE_CGROUP
|
||||
char* cgroup;
|
||||
#endif
|
||||
} Process;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user