Skip to content

Commit 81104ee

Browse files
authored
Fix invalid maximum size calculation for resize command (#69)
1 parent 17de6dd commit 81104ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ where
755755
.iter()
756756
.skip_while(|(m, _)| *m < p.starting_lba)
757757
.take(1)
758-
.find(|(m, _)| *m == ((p.ending_lba + 1) / align + 1) * align)
758+
.find(|(m, _)| *m == ((p.ending_lba + 1) / align) * align)
759759
.map(|(_, n)| n)
760760
.unwrap_or(&0))
761761
/ align

0 commit comments

Comments
 (0)