ef226cc81e
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
14 lines
654 B
Diff
14 lines
654 B
Diff
diff --git a/src/engine/strat_engine/thinpool/filesystem.rs b/src/engine/strat_engine/thinpool/filesystem.rs
|
|
index ae6c66b..ffcf962 100644
|
|
--- a/src/engine/strat_engine/thinpool/filesystem.rs
|
|
+++ b/src/engine/strat_engine/thinpool/filesystem.rs
|
|
@@ -225,6 +225,6 @@ pub fn fs_usage(mount_point: &Path) -> EngineResult<(Bytes, Bytes)> {
|
|
// Upcast to u64.
|
|
let f_bsize = stat.block_size() as u64;
|
|
|
|
- let blocks = stat.blocks();
|
|
- Ok((Bytes(f_bsize * blocks), Bytes(f_bsize * (blocks - stat.blocks_free()))))
|
|
+ let blocks = stat.blocks() as u64;
|
|
+ Ok((Bytes(f_bsize * blocks), Bytes(f_bsize * (blocks - stat.blocks_free() as u64))))
|
|
}
|