From: Jakob Cornell Date: Sat, 6 Nov 2021 20:23:59 +0000 (-0500) Subject: Correct upper end rounding in output sector ranges X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e70c4e1797c2d04bafbcd028b27c23bf61b0758;p=eros.git Correct upper end rounding in output sector ranges --- diff --git a/src/disk_jumble/verify.py b/src/disk_jumble/verify.py index e427c48..f160a96 100644 --- a/src/disk_jumble/verify.py +++ b/src/disk_jumble/verify.py @@ -124,7 +124,7 @@ if __name__ == "__main__": sector_ranges = [ range( chunk.slab.sectors.start + chunk.slice.start // disk.sector_size, - chunk.slab.sectors.start + chunk.slice.stop // disk.sector_size + chunk.slab.sectors.start + math.ceil(chunk.slice.stop / disk.sector_size) ) for chunk in task.chunks ]