summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-04-14 17:38:23 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-04-14 17:38:23 +0000
commiteedab1412b69b928ff0a55ffb90f376ea50e1508 (patch)
tree6a89371c533c1c06fa2251239141cb6dffefb26c
parent02b576f2c12b3c53d3f4eb824ebd3606f94bb1c9 (diff)
switch from <blank> to "B" for byte suffix; columns look too ugly otherwise
-rw-r--r--bin/df/df.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 401ee70a14f..d2a84dd0f74 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: df.c,v 1.12 1997/04/14 17:35:58 kstailey Exp $ */
+/* $OpenBSD: df.c,v 1.13 1997/04/14 17:38:22 kstailey Exp $ */
/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */
/*
@@ -49,7 +49,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.12 1997/04/14 17:35:58 kstailey Exp $";
+static char rcsid[] = "$OpenBSD: df.c,v 1.13 1997/04/14 17:38:22 kstailey Exp $";
#endif
#endif /* not lint */
@@ -337,11 +337,11 @@ prthumanval(bytes)
unit = unit_adjust(&bytes);
if (bytes == 0)
- (void)printf(" 0 ");
+ (void)printf(" 0B ");
else if (bytes > 10)
- (void)printf(" %5.0f%c ", bytes, " KMGTPE"[unit]);
+ (void)printf(" %5.0f%c ", bytes, "BKMGTPE"[unit]);
else
- (void)printf(" %5.1f%c ", bytes, " KMGTPE"[unit]);
+ (void)printf(" %5.1f%c ", bytes, "BKMGTPE"[unit]);
}
void