Fix printing of the "Mounted on" values for 'df -i'.
Fix spacing before "Mounted on" column in general. Submitted by: bde
This commit is contained in:
parent
0c0c597faa
commit
cca108e6a2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128553
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user