mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-25 17:41:01 +00:00
Merge pull request 'fix 32-bit build' (#632) from fix-32bit into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/632
This commit is contained in:
commit
143a349f55
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue