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
971c6f16e0
commit
d8025b239f
@ -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…
x
Reference in New Issue
Block a user