Use essentially the same formatting of the CPU stats percentages as in
vmstat so that they never coalesce. Both iostat and vmstat need larger fixes to prevent wide fields from unnecessarily messing up the alignment of all subsequent fields. PR: 41674 MFC-after: 3 days
This commit is contained in:
parent
2757068e4f
commit
8fa6b8a8b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102068
@ -727,7 +727,7 @@ cpustats(void)
|
||||
for (state = 0; state < CPUSTATES; ++state)
|
||||
time += cur.cp_time[state];
|
||||
for (state = 0; state < CPUSTATES; ++state)
|
||||
printf("%3.0f",
|
||||
printf(" %2.0f",
|
||||
rint(100. * cur.cp_time[state] / (time ? time : 1)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user