nnn

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

commit 26e739a6d986eecfc48be2f594a4eaa2c7c3ce81
parent c86db31ef5f904664a8ff6f318dcd14e6884e88a
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 27 Dec 2017 01:28:01 +0530

Use ffs() tweak.

Diffstat:
Mnnn.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nnn.c b/nnn.c @@ -1619,7 +1619,7 @@ get_fs_free(const char *path) if (statvfs(path, &svb) == -1) return 0; else - return svb.f_bavail << (ffs(svb.f_frsize) - 1); + return svb.f_bavail << ffs(svb.f_frsize >> 1); } static size_t @@ -1630,7 +1630,7 @@ get_fs_capacity(const char *path) if (statvfs(path, &svb) == -1) return 0; else - return svb.f_blocks << (ffs(svb.f_bsize) - 1); + return svb.f_blocks << ffs(svb.f_bsize >> 1); } static int