mirror of
https://gitlab.com/procps-ng/procps.git
synced 2024-11-28 04:24:59 +08:00
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:
parent
eae3efd2b5
commit
bffb097ba0
6
pmap.c
6
pmap.c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user