aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/df.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/df.c')
-rw-r--r--toys/posix/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/df.c b/toys/posix/df.c
index c8f492ea..0520923e 100644
--- a/toys/posix/df.c
+++ b/toys/posix/df.c
@@ -102,7 +102,7 @@ static void show_mt(struct mtab_list *mt, int measuring)
suap[1] = mt->statvfs.f_files - mt->statvfs.f_ffree;
suap[2] = getuid() ? mt->statvfs.f_favail : mt->statvfs.f_ffree;
} else {
- block = maxof(mt->statvfs.f_bsize, 1);
+ block = maxof(mt->statvfs.f_frsize, 1);
suap[0] = mt->statvfs.f_blocks;
suap[1] = mt->statvfs.f_blocks - mt->statvfs.f_bfree;
suap[2] = getuid() ? mt->statvfs.f_bavail : mt->statvfs.f_bfree;