summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2007-05-12 16:42:01 +0000
committermaxim <maxim@FreeBSD.org>2007-05-12 16:42:01 +0000
commita0d76ca625afcd4dd4e8a520e6855ba3b9bc2c96 (patch)
tree60f4ef39a13189c58f45900d93d871774b2f6152
parent3d3739b1a428e9ba779209dad57a67c775e02302 (diff)
downloadFreeBSD-src-a0d76ca625afcd4dd4e8a520e6855ba3b9bc2c96.zip
FreeBSD-src-a0d76ca625afcd4dd4e8a520e6855ba3b9bc2c96.tar.gz
o Fix several style bugs in the previous commit.
Prodded by: bde
-rw-r--r--usr.sbin/iostat/iostat.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index acefd4f..41176b0 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -673,9 +673,13 @@ devstats(int perf_select, long double etime, int havelast)
printf(" cpu ");
printf("\n");
if (Iflag == 0)
- printf("device r/s w/s kr/s kw/s wait svc_t %%b ");
+ printf("%s%s%s%s%s%s%s%s",
+ "device", " r/s", " w/s", " kr/s",
+ " kw/s", " wait", " svc_t", " %b ");
else
- printf("device r/i w/i kr/i kw/i wait svc_t %%b ");
+ printf("%s%s%s%s%s%s%s%s",
+ "device", " r/i", " w/i", " kr/i",
+ " kw/i", " wait", " svc_t", " %b ");
if (Tflag > 0)
printf("tin tout ");
if (Cflag > 0)
@@ -745,16 +749,20 @@ devstats(int perf_select, long double etime, int havelast)
devname, transfers_per_second_read,
transfers_per_second_write,
mb_per_second_read * 1024,
- mb_per_second_write * 1024, queue_len,
+ mb_per_second_write * 1024,
+ queue_len,
ms_per_transaction, busy_pct);
else
printf("%-8.8s %5.1Lf %5.1Lf %7.1Lf %7.1Lf %4qu %5.1Lf %3.0Lf ",
- devname, (long double)total_transfers_read,
+ devname,
+ (long double)total_transfers_read,
(long double)total_transfers_write,
- (long double)total_bytes_read / 1024,
- (long double)total_bytes_write / 1024, queue_len,
+ (long double)
+ total_bytes_read / 1024,
+ (long double)
+ total_bytes_write / 1024,
+ queue_len,
ms_per_transaction, busy_pct);
-
if (firstline) {
/*
* If this is the first device
OpenPOWER on IntegriCloud