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

This commit is contained in:
bruvzg 2021-05-31 12:57:18 +03:00
parent 1d35a35d4f
commit 1d7a63fb8f
No known key found for this signature in database
GPG key ID: 009E1BFE42239B95

View file

@ -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;