summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat/iostat.c
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2009-08-15 17:57:21 +0000
committerkeramida <keramida@FreeBSD.org>2009-08-15 17:57:21 +0000
commit51d21560af7d29a8d1d075f654ee21d89656a677 (patch)
tree20c9c1cd86a59f21c2766d291698097cee145380 /usr.sbin/iostat/iostat.c
parent133c231e50992dca40917bdf039c9aa8e2716c44 (diff)
downloadFreeBSD-src-51d21560af7d29a8d1d075f654ee21d89656a677.zip
FreeBSD-src-51d21560af7d29a8d1d075f654ee21d89656a677.tar.gz
iostat: add a bit of space between tty in/out columns
The columns for tty input and output may bump against each other if the tty output needs more than 5 columns. Add a bit of space that pushes everything 1 column to the right, but also avoids the problem. Approved by: re (rwatson)
Diffstat (limited to 'usr.sbin/iostat/iostat.c')
-rw-r--r--usr.sbin/iostat/iostat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index 65a0386..9831f84 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -586,7 +586,7 @@ main(int argc, char **argv)
}
if (xflag == 0 && Tflag > 0)
- printf("%4.0Lf%5.0Lf", cur.tk_nin / etime,
+ printf("%4.0Lf %5.0Lf", cur.tk_nin / etime,
cur.tk_nout / etime);
devstats(hflag, etime, havelast);
@@ -674,7 +674,7 @@ phdr(void)
return;
if (Tflag > 0)
- (void)printf(" tty");
+ (void)printf(" tty");
for (i = 0, printed=0;(i < num_devices) && (printed < maxshowdevs);i++){
int di;
if ((dev_select[i].selected != 0)
@@ -696,7 +696,7 @@ phdr(void)
(void)printf("\n");
if (Tflag > 0)
- (void)printf(" tin tout");
+ (void)printf(" tin tout");
for (i=0, printed = 0;(i < num_devices) && (printed < maxshowdevs);i++){
if ((dev_select[i].selected != 0)
@@ -741,7 +741,7 @@ devstats(int perf_select, long double etime, int havelast)
if (xflag > 0) {
printf(" extended device statistics ");
if (Tflag > 0)
- printf(" tty ");
+ printf(" tty ");
if (Cflag > 0)
printf(" cpu ");
printf("\n");
@@ -754,7 +754,7 @@ devstats(int perf_select, long double etime, int havelast)
"device r/i w/i kr/i kw/i wait svc_t %%b "
);
if (Tflag > 0)
- printf("tin tout ");
+ printf("tin tout ");
if (Cflag > 0)
printf("us ni sy in id ");
printf("\n");
@@ -895,7 +895,7 @@ devstats(int perf_select, long double etime, int havelast)
*/
printf("%52s","");
if (Tflag > 0)
- printf("%4.0Lf%5.0Lf", cur.tk_nin / etime,
+ printf("%4.0Lf %5.0Lf", cur.tk_nin / etime,
cur.tk_nout / etime);
if (Cflag > 0)
cpustats();
OpenPOWER on IntegriCloud