From 9cfe55ab602809d2e3d39b762f7e07e459495ee6 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 11 Sep 2023 20:01:29 +0200 Subject: fix 32-bit build --- src/rpc/system.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rpc') 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, -- cgit v1.2.3