Skip to content

Commit

Permalink
Fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
mulkieran committed Aug 8, 2024
1 parent 2d4e76d commit 1ff3f18
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/bin/utils/predict_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,9 @@ impl V2usage {
let stratis_avail_sizes = device_sizes
.iter()
.map(|&s| {
(*s).checked_sub(*self.raid_metadata_alloc)
.and_then(|r| {
r.checked_sub(*integrity_meta_space(s - self.stratis_metadata_alloc))
})
.and_then(|r| r.checked_sub(*self.stratis_metadata_alloc))
(*s).checked_sub(*self.stratis_metadata_alloc)
.and_then(|r| r.checked_sub(*integrity_meta_space(s)))
.and_then(|r| r.checked_sub(*self.raid_metadata_alloc))
.map(Sectors)
.ok_or_else(|| {
Box::new(PredictError(
Expand Down

0 comments on commit 1ff3f18

Please sign in to comment.