summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/df/df.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 73b9d4b..9613700 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -433,7 +433,7 @@ prtstat(struct statfs *sfsp, struct maxwidths *mwp)
if (++timesthrough == 1) {
mwp->mntfrom = imax(mwp->mntfrom, (int)strlen("Filesystem"));
if (hflag) {
- header = " Size";
+ header = " Size";
mwp->total = mwp->used = mwp->avail =
(int)strlen(header);
} else {
@@ -478,7 +478,9 @@ prtstat(struct statfs *sfsp, struct maxwidths *mwp)
(void)printf(" %*jd %*jd %4.0f%% ", mwp->iused, (intmax_t)used,
mwp->ifree, (intmax_t)sfsp->f_ffree, inodes == 0 ? 100.0 :
(double)used / (double)inodes * 100.0);
- } else if (!total)
+ } else
+ (void)printf(" ");
+ if (!total)
(void)printf(" %s", sfsp->f_mntonname);
(void)printf("\n");
}
OpenPOWER on IntegriCloud