Skip to content

Commit

Permalink
Merge branch 'main' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis211 committed Sep 11, 2023
2 parents 51abbb0 + 143a349 commit fd7d8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fd7d8fe

Please sign in to comment.