1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00

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:
Bruce Evans 2002-08-18 17:51:14 +00:00
parent 2757068e4f
commit 8fa6b8a8b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102068

View File

@ -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)));
}