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
This commit is contained in:
parent
a58ff0abbb
commit
237d4cef65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141401
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user