diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-31 12:42:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-31 12:42:04 +0200 |
commit | afe776c19e0799f949f28058b2425d9f36c39ad6 (patch) | |
tree | 777403a96123e17162648f4f9d7d93db64655885 /drivers | |
parent | 4a9742457629af9c110e433cf15e83ab3aad05d1 (diff) | |
parent | 1d7a63fb8fbdc2fb53744ee1be13b76278fda03d (diff) |
Merge pull request #49222 from bruvzg/fix_unix_free_space
Fix `Directory::get_space_left()` result on macOS and Linux.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/unix/dir_access_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/dir_access_unix.cpp b/drivers/unix/dir_access_unix.cpp index 5abe5d2c87..a2c9bae852 100644 --- a/drivers/unix/dir_access_unix.cpp +++ b/drivers/unix/dir_access_unix.cpp @@ -460,7 +460,7 @@ uint64_t DirAccessUnix::get_space_left() { return 0; }; - return vfs.f_bfree * vfs.f_bsize; + return (uint64_t)vfs.f_bavail * (uint64_t)vfs.f_frsize; #else // FIXME: Implement this. return 0; |