Fix Directory::get_space_left()
result on macOS and Linux.
(cherry picked from commit 1d7a63fb8f
)
This commit is contained in:
parent
2ce5515762
commit
65d9992fb6
@ -397,7 +397,7 @@ size_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;
|
||||
|
Loading…
Reference in New Issue
Block a user