nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 527e995f1f6686966fcf13181d7a922d913aac95
parent d1b2bb1e760ed53e037f4a70cafbcd7b9e49411a
Author: Martin Ziemer <59821134+horrad@users.noreply.github.com>
Date:   Thu, 16 Jan 2020 12:10:30 +0100

Fixed calculation of capacity on OpenBSD (#441)


Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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_bsize >> 1)); + return svb.f_blocks << ffs((int)(svb.f_frsize >> 1)); return svb.f_bavail << ffs((int)(svb.f_frsize >> 1)); }