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.
This commit is contained in:
Denis Vlasenko
2007-08-29 18:23:36 +00:00
parent 8bdba4d011
commit fc1e9951c6
2 changed files with 5 additions and 5 deletions

View File

@ -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;