projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1b2bb1
)
Fixed calculation of capacity on OpenBSD (#441)
author
Martin Ziemer <59821134+horrad@users.noreply.github.com>
Thu, 16 Jan 2020 11:10:30 +0000 (12:10 +0100)
committer
Mischievous Meerkat <engineerarun@gmail.com>
Thu, 16 Jan 2020 11:10:30 +0000 (16:40 +0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index d33ca8340070b9230212122281c3b5efefbe1039..c79baadd27cfba521387bda778c0d7ca56139124 100644
(file)
--- 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_
b
size >> 1));
+ return svb.f_blocks << ffs((int)(svb.f_
fr
size >> 1));
return svb.f_bavail << ffs((int)(svb.f_frsize >> 1));
}