Fix `Directory::get_space_left()` result on macOS and Linux.

(cherry picked from commit 1d7a63fb8f)
This commit is contained in:
bruvzg 2021-05-31 12:57:18 +03:00 committed by Rémi Verschelde
parent 14969a5945
commit 462e57f5e6
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,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;