mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-12-22 15:16:34 +00:00
Merge pull request 'fix compilation on macos' (#654) from trinity-1686a/garage:fix-macos-compilation into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/654
This commit is contained in:
commit
b53510c5b7
1 changed files with 2 additions and 2 deletions
|
@ -899,8 +899,8 @@ impl NodeStatus {
|
|||
use nix::sys::statvfs::statvfs;
|
||||
let mount_avail = |path: &Path| match statvfs(path) {
|
||||
Ok(x) => {
|
||||
let avail = x.blocks_available() * x.fragment_size() as u64;
|
||||
let total = x.blocks() * x.fragment_size() as u64;
|
||||
let avail = x.blocks_available() as u64 * x.fragment_size() as u64;
|
||||
let total = x.blocks() as u64 * x.fragment_size() as u64;
|
||||
Some((x.filesystem_id(), avail, total))
|
||||
}
|
||||
Err(_) => None,
|
||||
|
|
Loading…
Reference in a new issue