Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/df Use the same width (9) for both the Used and Avail co...
details: https://anonhg.NetBSD.org/src/rev/89e259cca0f7
branches: trunk
changeset: 572361:89e259cca0f7
user: augustss <augustss%NetBSD.org@localhost>
date: Fri Dec 31 09:54:28 2004 +0000
description:
Use the same width (9) for both the Used and Avail columns.
diffstat:
bin/df/df.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 45e2b4c71d19 -r 89e259cca0f7 bin/df/df.c
--- a/bin/df/df.c Fri Dec 31 08:34:13 2004 +0000
+++ b/bin/df/df.c Fri Dec 31 09:54:28 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: df.c,v 1.66 2004/07/17 00:29:08 enami Exp $ */
+/* $NetBSD: df.c,v 1.67 2004/12/31 09:54:28 augustss Exp $ */
/*
* Copyright (c) 1980, 1990, 1993, 1994
@@ -45,7 +45,7 @@
#if 0
static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: df.c,v 1.66 2004/07/17 00:29:08 enami Exp $");
+__RCSID("$NetBSD: df.c,v 1.67 2004/12/31 09:54:28 augustss Exp $");
#endif
#endif /* not lint */
@@ -357,7 +357,7 @@
headerlen = strlen(header);
} else
header = getbsize(&headerlen, &blocksize);
- (void)printf("%-*.*s %s Used %9s Capacity",
+ (void)printf("%-*.*s %s Used %9s Capacity",
maxwidth, maxwidth, "Filesystem", header,
Pflag ? "Available" : "Avail");
if (iflag)
@@ -371,7 +371,7 @@
if (hflag)
prthuman(sfsp, used, bavail);
else
- (void)printf(" %*" PRId64 " %8" PRId64 " %9" PRId64, headerlen,
+ (void)printf(" %*" PRId64 " %9" PRId64 " %9" PRId64, headerlen,
fsbtoblk(sfsp->f_blocks, sfsp->f_frsize, blocksize),
fsbtoblk(used, sfsp->f_frsize, blocksize),
fsbtoblk(bavail, sfsp->f_frsize, blocksize));
Home |
Main Index |
Thread Index |
Old Index