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 column spacing for the -h output as with...



details:   https://anonhg.NetBSD.org/src/rev/987b0e6abffb
branches:  trunk
changeset: 768976:987b0e6abffb
user:      gson <gson%NetBSD.org@localhost>
date:      Mon Aug 29 17:30:28 2011 +0000

description:
Use the same column spacing for the -h output as with the normal output,
as the same header line format is used in both cases and it can't line
up correctly with both of them otherwise.

diffstat:

 bin/df/df.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 11e15671cd69 -r 987b0e6abffb bin/df/df.c
--- a/bin/df/df.c       Mon Aug 29 16:56:32 2011 +0000
+++ b/bin/df/df.c       Mon Aug 29 17:30:28 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: df.c,v 1.88 2011/08/29 00:36:20 enami Exp $ */
+/*     $NetBSD: df.c,v 1.89 2011/08/29 17:30:28 gson 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.88 2011/08/29 00:36:20 enami Exp $");
+__RCSID("$NetBSD: df.c,v 1.89 2011/08/29 17:30:28 gson Exp $");
 #endif
 #endif /* not lint */
 
@@ -338,7 +338,7 @@
 prthuman(struct statvfs *sfsp, int64_t used, int64_t bavail)
 {
 
-       prthumanval((int64_t)(sfsp->f_blocks * sfsp->f_frsize), "  ");
+       prthumanval((int64_t)(sfsp->f_blocks * sfsp->f_frsize), "   ");
        prthumanval((int64_t)(used * sfsp->f_frsize), "    ");
        prthumanval((int64_t)(bavail * sfsp->f_frsize), "    ");
 }



Home | Main Index | Thread Index | Old Index