mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 09:37:08 -04:00
Unconditionally update the maximum field width statistics when we
refetch the filesystem information in MNT_WAIT mode. This avoids incorrect column alignment that sometimes occurs with NFS filesystems. Submitted by: Ian <freebsd@damnhippie.dyndns.org>
This commit is contained in:
parent
34431fe7a1
commit
85ed93337f
1 changed files with 3 additions and 5 deletions
|
|
@ -203,11 +203,9 @@ main(int argc, char *argv[])
|
|||
rv = 0;
|
||||
if (!*argv) {
|
||||
mntsize = regetmntinfo(&mntbuf, mntsize, vfslist);
|
||||
if (vfslist != NULL) {
|
||||
bzero(&maxwidths, sizeof(maxwidths));
|
||||
for (i = 0; i < mntsize; i++)
|
||||
update_maxwidths(&maxwidths, &mntbuf[i]);
|
||||
}
|
||||
bzero(&maxwidths, sizeof(maxwidths));
|
||||
for (i = 0; i < mntsize; i++)
|
||||
update_maxwidths(&maxwidths, &mntbuf[i]);
|
||||
for (i = 0; i < mntsize; i++) {
|
||||
if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0)
|
||||
prtstat(&mntbuf[i], &maxwidths);
|
||||
|
|
|
|||
Loading…
Reference in a new issue