CheckFreeSpace POSIX fix

This commit is contained in:
Jack Andersen 2016-01-25 16:02:57 -10:00
parent badbb53a6e
commit 4fe7232687
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ static inline bool CheckFreeSpace(const SystemChar* path, size_t reqSz)
struct statvfs svfs;
if (statvfs(path, &svfs))
LogModule.report(LogVisor::FatalError, "statvfs %s: %s", path, strerror(errno));
return reqSz < svfs.f_bsize * svfs.f_bfree;
return reqSz < svfs.f_frsize * svfs.f_bavail;
#endif
}