fix compilation on macos
fsblkcnt_t is ony 32b there, so we have to do an additional cast
This commit is contained in:
parent
d8263fdf92
commit
c7f5dcd953
@ -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() as u64;
|
||||
let total = x.blocks() * x.fragment_size() as u64;
|
||||
let avail = x.blocks_available() as u64 * x.fragment_size() as u64;
|
||||
let total = x.blocks() as u64 * x.fragment_size() as u64;
|
||||
Some((x.filesystem_id(), avail, total))
|
||||
}
|
||||
Err(_) => None,
|
||||
|
Loading…
Reference in New Issue
Block a user