mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-27 23:47:29 +00:00
Merge branch 'main' into next
This commit is contained in:
+2
-2
@@ -899,8 +899,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((x.filesystem_id(), avail, total))
|
Some((x.filesystem_id(), avail, total))
|
||||||
}
|
}
|
||||||
Err(_) => None,
|
Err(_) => None,
|
||||||
|
|||||||
Reference in New Issue
Block a user