aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-26 18:23:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-26 18:23:13 +0000
commit512499c8cab30684785c6b116abbb7c868ac5be9 (patch)
tree85b99d5221125f9ab56c80440f85241964b16290 /include
parentec9781d5e4ff39a174c7f34c7cc5d02b94612e04 (diff)
downloadbusybox-w32-512499c8cab30684785c6b116abbb7c868ac5be9.tar.gz
busybox-w32-512499c8cab30684785c6b116abbb7c868ac5be9.tar.bz2
busybox-w32-512499c8cab30684785c6b116abbb7c868ac5be9.zip
ps: fix RSS parsing (rss field in /proc/PID/stat is in pages, not bytes)
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index e514fe2f2..89a1695fa 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -881,12 +881,12 @@ enum { COMM_LEN = TASK_COMM_LEN };
881enum { COMM_LEN = 16 }; 881enum { COMM_LEN = 16 };
882#endif 882#endif
883#endif 883#endif
884typedef struct { 884typedef struct procps_status_t {
885 DIR *dir; 885 DIR *dir;
886 uint8_t shift_pages_to_bytes;
887 uint8_t shift_pages_to_kb;
886/* Fields are set to 0/NULL if failed to determine (or not requested) */ 888/* Fields are set to 0/NULL if failed to determine (or not requested) */
887 /*char *cmd;*/
888 char *argv0; 889 char *argv0;
889 /*char *exe;*/
890 USE_SELINUX(char *context;) 890 USE_SELINUX(char *context;)
891 /* Everything below must contain no ptrs to malloc'ed data: 891 /* Everything below must contain no ptrs to malloc'ed data:
892 * it is memset(0) for each process in procps_scan() */ 892 * it is memset(0) for each process in procps_scan() */