aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/system.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-09-11 23:09:20 +0200
committerAlex Auvolat <alex@adnab.me>2023-09-11 23:09:20 +0200
commitfd7d8fec59c617b40e480ff855894cf35fdcfb40 (patch)
treecef125879d8d3bdbbd8a73ac6eb30095f666e926 /src/rpc/system.rs
parent51abbb02d8b77529c2e3db079d527d0f28c737bc (diff)
parent143a349f55b0c652d407019c5850313b0c95ccbd (diff)
downloadgarage-fd7d8fec59c617b40e480ff855894cf35fdcfb40.tar.gz
garage-fd7d8fec59c617b40e480ff855894cf35fdcfb40.zip
Merge branch 'main' into nextv0.9.0-beta2
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r--src/rpc/system.rs4
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,