pmap -x has RSS and Dirty summary

This is largely Andrey's patch based upon merge request #7
If KLONG != 8 the summary didn't print for RRS and Dirty, this commit
restores this behavour for both sizes.

Ref: https://gitorious.org/procps/procps/merge_requests/7

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Andrey Bondarenko 2013-01-24 22:26:27 +11:00 committed by Craig Small
parent eae3efd2b5
commit bffb097ba0

6
pmap.c
View File

@ -538,9 +538,11 @@ static int one_proc(proc_t * p)
printf
("-------- ------- ------- ------- -------\n");
printf
(_("total kB %7ld - - -\n"),
(_("total kB %7ld %7llu %7llu -\n"),
(total_shared + total_private_writeable +
total_private_readonly) >> 10);
total_private_readonly) >> 10,
total_rss, (total_shared_dirty+total_private_dirty));
}
}
if (d_option) {