diff options
author | Denis Vlasenko | 2007-08-26 18:23:13 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-08-26 18:23:13 +0000 |
commit | 512499c8cab30684785c6b116abbb7c868ac5be9 (patch) | |
tree | 85b99d5221125f9ab56c80440f85241964b16290 /include/libbb.h | |
parent | ec9781d5e4ff39a174c7f34c7cc5d02b94612e04 (diff) | |
download | busybox-512499c8cab30684785c6b116abbb7c868ac5be9.zip busybox-512499c8cab30684785c6b116abbb7c868ac5be9.tar.gz |
ps: fix RSS parsing (rss field in /proc/PID/stat is in pages, not bytes)
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index e514fe2..89a1695 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -881,12 +881,12 @@ enum { COMM_LEN = TASK_COMM_LEN }; enum { COMM_LEN = 16 }; #endif #endif -typedef struct { +typedef struct procps_status_t { DIR *dir; + uint8_t shift_pages_to_bytes; + uint8_t shift_pages_to_kb; /* Fields are set to 0/NULL if failed to determine (or not requested) */ - /*char *cmd;*/ char *argv0; - /*char *exe;*/ USE_SELINUX(char *context;) /* Everything below must contain no ptrs to malloc'ed data: * it is memset(0) for each process in procps_scan() */ |