Module Name: src
Committed By: kamil
Date: Sat Mar 5 08:15:01 UTC 2016
Modified Files:
src/bin/df: df.c
Log Message:
Correct display of df(1) with the -i parameter
Now the "Mounted on" column should be aligned with /entries.
Patch by Michal Mazurek.
To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/bin/df/df.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/df/df.c
diff -u src/bin/df/df.c:1.91 src/bin/df/df.c:1.92
--- src/bin/df/df.c:1.91 Thu Nov 12 17:59:21 2015
+++ src/bin/df/df.c Sat Mar 5 08:15:01 2016
@@ -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 @@ __COPYRIGHT(
#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 @@ prtstat(struct statvfs *sfsp, int maxwid
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));