From 4e70c4e1797c2d04bafbcd028b27c23bf61b0758 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sat, 6 Nov 2021 15:23:59 -0500 Subject: [PATCH] Correct upper end rounding in output sector ranges --- src/disk_jumble/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ] -- 2.30.2