summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-01-28 16:44:18 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-01-28 16:44:18 +0000
commit53ae633ab0c9c2cefef3adba6fc8a2300597c48c (patch)
tree658e8cb0d993c9a7d98272847501c8d61d9656bf
parentfd0d56de2007fd4827c47496b583d9efd6a1de04 (diff)
widen the avail/used columns by one space to accomodate for >100g filesystems. the total is already wide enough due to the header length; dhartmei@ ok
-rw-r--r--bin/df/df.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 97283390387..b1e4be50c5b 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: df.c,v 1.41 2004/11/18 16:11:06 millert Exp $ */
+/* $OpenBSD: df.c,v 1.42 2005/01/28 16:44:17 mickey Exp $ */
/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */
/*
@@ -45,7 +45,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: df.c,v 1.41 2004/11/18 16:11:06 millert Exp $";
+static char rcsid[] = "$OpenBSD: df.c,v 1.42 2005/01/28 16:44:17 mickey Exp $";
#endif
#endif /* not lint */
@@ -302,7 +302,7 @@ prthumanval(long long bytes)
(void)printf(" %lld", bytes);
return;
}
- (void)printf(" %6s", ret);
+ (void)printf(" %7s", ret);
}
void
@@ -336,7 +336,7 @@ prtstat(struct statfs *sfsp, int maxwidth, int headerlen, int blocksize)
if (hflag)
prthuman(sfsp, used);
else
- (void)printf(" %*u %8u %8d", headerlen,
+ (void)printf(" %*u %9u %9d", headerlen,
fsbtoblk(sfsp->f_blocks, sfsp->f_bsize, blocksize),
fsbtoblk(used, sfsp->f_bsize, blocksize),
fsbtoblk(sfsp->f_bavail, sfsp->f_bsize, blocksize));
@@ -365,9 +365,9 @@ bsdprint(struct statfs *mntbuf, long mntsize, int maxwidth)
/* Print the header line */
if (hflag) {
- header = " Size";
+ header = " Size";
headerlen = strlen(header);
- (void)printf("%-*.*s %s Used Avail Capacity",
+ (void)printf("%-*.*s %s Used Avail Capacity",
maxwidth, maxwidth, "Filesystem", header);
} else {
if (kflag) {
@@ -376,7 +376,7 @@ bsdprint(struct statfs *mntbuf, long mntsize, int maxwidth)
headerlen = strlen(header);
} else
header = getbsize(&headerlen, &blocksize);
- (void)printf("%-*.*s %s Used Avail Capacity",
+ (void)printf("%-*.*s %s Used Avail Capacity",
maxwidth, maxwidth, "Filesystem", header);
}
if (iflag)