aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-16 22:58:12 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-16 22:58:12 +0530
commit681b22d5c76356912fe29eb5769a92634329ad9b (patch)
tree90fa61abedf8e6bf3a7e7eb8502dc06d38902a32 /src/nnn.c
parent7086df5c784f2ad1f14408f2e9df9ff41b4a4af1 (diff)
downloadnnn-681b22d5c76356912fe29eb5769a92634329ad9b.tar.gz
Revert "Fixed calculation of capacity on OpenBSD (#441)"
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 3e7760b..63b6c03 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3285,7 +3285,7 @@ static size_t get_fs_info(const char *path, bool type)
return 0;
if (type == CAPACITY)
- return svb.f_blocks << ffs((int)(svb.f_frsize >> 1));
+ return svb.f_blocks << ffs((int)(svb.f_bsize >> 1));
return svb.f_bavail << ffs((int)(svb.f_frsize >> 1));
}