summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-08-18 17:51:14 +0000
committerbde <bde@FreeBSD.org>2002-08-18 17:51:14 +0000
commitd8025b239ff2dd1e69934313ada8a84cadb5e9fe (patch)
tree6f6861cebd967dd9065327c1db0d173cc8c90be2 /usr.sbin/iostat
parent971c6f16e01e4bee68092613ca9a0ab35e2b9048 (diff)
downloadFreeBSD-src-d8025b239ff2dd1e69934313ada8a84cadb5e9fe.zip
FreeBSD-src-d8025b239ff2dd1e69934313ada8a84cadb5e9fe.tar.gz
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
Diffstat (limited to 'usr.sbin/iostat')
-rw-r--r--usr.sbin/iostat/iostat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index f0d3123..22d19a7 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -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)));
}
OpenPOWER on IntegriCloud