Revert "Fixed calculation of capacity on OpenBSD (#441)"

This reverts commit 527e995f1f.
This commit is contained in:
Arun Prakash Jana 2020-01-16 22:58:12 +05:30
parent 7086df5c78
commit 681b22d5c7
1 changed files with 1 additions and 1 deletions

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_frsize >> 1));
return svb.f_blocks << ffs((int)(svb.f_bsize >> 1));
return svb.f_bavail << ffs((int)(svb.f_frsize >> 1));
}