diff options
author | Alex <alex@adnab.me> | 2023-10-16 09:33:33 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2023-10-16 09:33:33 +0000 |
commit | b53510c5b74bc8d52e25bcdb517b38fa60f67a67 (patch) | |
tree | e90e6de1908fd97eb79928d151ccc239fb416363 /src | |
parent | d8263fdf92532cedaa11efb715971e2b0613924e (diff) | |
parent | c7f5dcd953ff1fdfa002a8bccfb43eafcc6fddd4 (diff) | |
download | garage-b53510c5b74bc8d52e25bcdb517b38fa60f67a67.tar.gz garage-b53510c5b74bc8d52e25bcdb517b38fa60f67a67.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/system.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs index 78fcc74b..4b40bec4 100644 --- a/src/rpc/system.rs +++ b/src/rpc/system.rs @@ -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, |