diff --git a/hecl/include/HECL/HECL.hpp b/hecl/include/HECL/HECL.hpp index 7ad901842..1f72f64fa 100644 --- a/hecl/include/HECL/HECL.hpp +++ b/hecl/include/HECL/HECL.hpp @@ -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 }