From: Martin Ziemer <59821134+horrad@users.noreply.github.com> Date: Thu, 16 Jan 2020 11:10:30 +0000 (+0100) Subject: Fixed calculation of capacity on OpenBSD (#441) X-Git-Tag: v3.0~83 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=527e995f1f6686966fcf13181d7a922d913aac95;p=nnn.git Fixed calculation of capacity on OpenBSD (#441) --- diff --git a/src/nnn.c b/src/nnn.c index d33ca834..c79baadd 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_bsize >> 1)); + return svb.f_blocks << ffs((int)(svb.f_frsize >> 1)); return svb.f_bavail << ffs((int)(svb.f_frsize >> 1)); }