diff options
author | csjp <csjp@FreeBSD.org> | 2005-02-06 16:34:49 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2005-02-06 16:34:49 +0000 |
commit | ba0f4166c6965d57d66bcef7a53014d7e2d63dcf (patch) | |
tree | 57828209fb141851d03cc98ddba1d0b5b7133a39 /bin/ps | |
parent | 909fc0148b7b62924ba87aad958ecc8fc9324cf4 (diff) | |
download | FreeBSD-src-ba0f4166c6965d57d66bcef7a53014d7e2d63dcf.zip FreeBSD-src-ba0f4166c6965d57d66bcef7a53014d7e2d63dcf.tar.gz |
Since it is not un-common for a process's resident set size (rss)
to exceed 10 megabytes in size (especially in X), bump the max
column width from 4 bytes to 5. This will make the ps auxw output
uniform again when a process's rss exceeds 10 megs.
It should be noted that when 5 digits becomes to small, other
solutions should be explored such as displaying them in megabytes
or having ps automatically re-size column widths.
Discussed with: gad
MFC after: 1 week
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/keyword.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index 60e9e2e..ed3dafe 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -157,7 +157,7 @@ static VAR var[] = { UINT, UIDFMT, 0}, {"rgroup", "RGROUP", NULL, LJUST|DSIZ, rgroupname, s_rgroupname, USERLEN, 0, CHAR, NULL, 0}, - {"rss", "RSS", NULL, 0, kvar, NULL, 4, KOFF(ki_rssize), PGTOK, "ld", 0}, + {"rss", "RSS", NULL, 0, kvar, NULL, 5, KOFF(ki_rssize), PGTOK, "ld", 0}, {"rtprio", "RTPRIO", NULL, 0, priorityr, NULL, 7, KOFF(ki_pri), CHAR, NULL, 0}, {"ruid", "RUID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_ruid), |