diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-11 16:18:58 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-11 16:18:58 +0000 |
commit | ab0ef148aeb8f95b582d87536bd38ed68b2bbf01 (patch) | |
tree | baf8ff8be11d16eed554e1829cd1e42ab969e4a9 /usr.sbin/iostat | |
parent | fac3b958bc4812d1b5a5f9cc95a767b94a896947 (diff) | |
download | FreeBSD-src-ab0ef148aeb8f95b582d87536bd38ed68b2bbf01.zip FreeBSD-src-ab0ef148aeb8f95b582d87536bd38ed68b2bbf01.tar.gz |
Cosmetic fixes for drive names which are 4 chars long.
Submitted-By: Joe Greco <jgreco@ns.sol.net>
Diffstat (limited to 'usr.sbin/iostat')
-rw-r--r-- | usr.sbin/iostat/iostat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c index 0cdf8a2..5d80062 100644 --- a/usr.sbin/iostat/iostat.c +++ b/usr.sbin/iostat/iostat.c @@ -334,7 +334,7 @@ phdr(signo) (void)printf(" tty"); for (i = 0; i < dk_ndrive; i++) if (dr_select[i]) - (void)printf(" %3.3s ", dr_name[i]); + (void)printf(" %4.4s ", dr_name[i]); (void)printf(" cpu\n tin tout"); for (i = 0; i < dk_ndrive; i++) if (dr_select[i]) @@ -351,7 +351,7 @@ dkstats() for (dn = 0; dn < dk_ndrive; ++dn) { if (!dr_select[dn]) continue; - words = cur.dk_wds[dn] * 32; /* words xfer'd */ + words = (double)cur.dk_wds[dn] * 32; /* words xfer'd */ (void)printf("%4.0f", /* sectors */ words / (DEV_BSIZE / 2) / etime); |