mirror of https://github.com/AxioDL/metaforce.git
CheckFreeSpace POSIX fix
This commit is contained in:
parent
badbb53a6e
commit
4fe7232687
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue