summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2007-08-29 18:23:36 +0000
committerDenis Vlasenko2007-08-29 18:23:36 +0000
commitfc1e9951c6393f9b0e42d9a7fa2899b8618b21f8 (patch)
treeee5fdd64596f2b9171f333d7b623328e479f67f2 /include
parent8bdba4d011887ce77cd6de93859cacf7adea391e (diff)
downloadbusybox-fc1e9951c6393f9b0e42d9a7fa2899b8618b21f8.zip
busybox-fc1e9951c6393f9b0e42d9a7fa2899b8618b21f8.tar.gz
vsz and rss are unsigned longs (ulong ~= width of void* =>
suitable for expressing total RAM in system). We account for "32 bit in 64 bit" systems by storing kbytes, not bytes there. Should allow for up to ~2000 Gb RAM on 32 bits.
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 678c561..6c6b486 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -891,7 +891,7 @@ typedef struct procps_status_t {
USE_SELINUX(char *context;)
/* Everything below must contain no ptrs to malloc'ed data:
* it is memset(0) for each process in procps_scan() */
- unsigned vsz, rss; /* we round it to kbytes */
+ unsigned long vsz, rss; /* we round it to kbytes */
unsigned long stime, utime;
unsigned pid;
unsigned ppid;