--- df.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/df.c b/df.c index 4d595d6..245cca3 100644 --- a/df.c +++ b/df.c _AT_@ -65,8 +65,8 @@ mnt_show(const char *fsname, const char *dir) bs = s.f_frsize / blksize; total = s.f_blocks * bs; - avail = s.f_bfree * bs; - used = total - avail; + avail = s.f_bavail * bs; + used = total - s.f_bfree * bs; if (used + avail) { capacity = (used * 100) / (used + avail); -- 2.24.0Received on Tue Nov 12 2019 - 17:24:34 CET
This archive was generated by hypermail 2.3.0 : Tue Nov 12 2019 - 17:36:24 CET