From 4fe7232687457318c1d44e5017fd57d89b29ecf9 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 25 Jan 2016 16:02:57 -1000 Subject: [PATCH] CheckFreeSpace POSIX fix --- hecl/include/HECL/HECL.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }