1
0
Fork 0
mirror of https://github.com/jarun/nnn.git synced 2025-03-24 07:12:16 +00:00

Fixed calculation of capacity on OpenBSD ()

This commit is contained in:
Martin Ziemer 2020-01-16 12:10:30 +01:00 committed by Mischievous Meerkat
parent d1b2bb1e76
commit 527e995f1f

View file

@ -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));
}