Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/df Correct display of df(1) with the -i parameter
details: https://anonhg.NetBSD.org/src/rev/7d8a52dfdaea
branches: trunk
changeset: 343930:7d8a52dfdaea
user: kamil <kamil%NetBSD.org@localhost>
date: Sat Mar 05 08:15:01 2016 +0000
description:
Correct display of df(1) with the -i parameter
Now the "Mounted on" column should be aligned with /entries.
Patch by Michal Mazurek.
diffstat:
bin/df/df.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5c4c1c517f0b -r 7d8a52dfdaea bin/df/df.c
--- a/bin/df/df.c Sat Mar 05 07:33:58 2016 +0000
+++ b/bin/df/df.c Sat Mar 05 08:15:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: df.c,v 1.91 2015/11/12 17:59:21 christos Exp $ */
+/* $NetBSD: df.c,v 1.92 2016/03/05 08:15:01 kamil 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.91 2015/11/12 17:59:21 christos Exp $");
+__RCSID("$NetBSD: df.c,v 1.92 2016/03/05 08:15:01 kamil Exp $");
#endif
#endif /* not lint */
@@ -499,7 +499,7 @@
if (iflag) {
inodes = sfsp->f_files;
used = inodes - sfsp->f_ffree;
- (void)printf(" %8jd %8jd %3s%%",
+ (void)printf(" %8jd %8jd %4s%%",
(intmax_t)used, (intmax_t)sfsp->f_ffree,
inodes == 0 ? (used == 0 ? empty : full) :
strspct(pb, sizeof(pb), used, inodes, 0));
Home |
Main Index |
Thread Index |
Old Index