Compare commits

..

No commits in common. "b53510c5b74bc8d52e25bcdb517b38fa60f67a67" and "d8263fdf92532cedaa11efb715971e2b0613924e" have entirely different histories.

View file

@ -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() as u64 * x.fragment_size() as u64;
let total = x.blocks() as u64 * x.fragment_size() as u64;
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,