diff options
author | Alex Auvolat <alex@adnab.me> | 2023-09-11 23:09:20 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-09-11 23:09:20 +0200 |
commit | fd7d8fec59c617b40e480ff855894cf35fdcfb40 (patch) | |
tree | cef125879d8d3bdbbd8a73ac6eb30095f666e926 /src/rpc | |
parent | 51abbb02d8b77529c2e3db079d527d0f28c737bc (diff) | |
parent | 143a349f55b0c652d407019c5850313b0c95ccbd (diff) | |
download | garage-0.9.0-beta2.tar.gz garage-0.9.0-beta2.zip |
Merge branch 'main' into nextv0.9.0-beta2
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 b76e6d4a..8fba9580 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(); - 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((x.filesystem_id(), avail, total)) } Err(_) => None, |