fix 32-bit build

This commit is contained in:
Alex Auvolat 2023-09-11 20:01:29 +02:00
parent 2548a247f2
commit 9cfe55ab60

View file

@ -894,8 +894,8 @@ impl NodeStatus {
use nix::sys::statvfs::statvfs; use nix::sys::statvfs::statvfs;
let mount_avail = |path: &Path| match statvfs(path) { let mount_avail = |path: &Path| match statvfs(path) {
Ok(x) => { Ok(x) => {
let avail = x.blocks_available() * x.fragment_size(); let avail = x.blocks_available() * x.fragment_size() as u64;
let total = x.blocks() * x.fragment_size(); let total = x.blocks() * x.fragment_size() as u64;
Some((avail, total)) Some((avail, total))
} }
Err(_) => None, Err(_) => None,