diff options
author | Alex <alex@adnab.me> | 2023-09-11 21:08:26 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2023-09-11 21:08:26 +0000 |
commit | 143a349f55b0c652d407019c5850313b0c95ccbd (patch) | |
tree | cbb0d357ca9f151ff0c5917d68fbd25060af059b /src/rpc | |
parent | 2548a247f22a6404a2f447e9f9c47fe18e10f67a (diff) | |
parent | 9cfe55ab602809d2e3d39b762f7e07e459495ee6 (diff) | |
download | garage-143a349f55b0c652d407019c5850313b0c95ccbd.tar.gz garage-143a349f55b0c652d407019c5850313b0c95ccbd.zip |
Merge pull request 'fix 32-bit build' (#632) from fix-32bit into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/632
Diffstat (limited to 'src/rpc')
-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 72ce8de9..36b58311 100644 --- a/src/rpc/system.rs +++ b/src/rpc/system.rs @@ -894,8 +894,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(); - let total = x.blocks() * x.fragment_size(); + let avail = x.blocks_available() * x.fragment_size() as u64; + let total = x.blocks() * x.fragment_size() as u64; Some((avail, total)) } Err(_) => None, |