From: Anders Cornell Date: Wed, 20 Apr 2022 19:17:14 +0000 (-0400) Subject: off by one X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=ee3a229059719e14d3778b22d84dd6da24b530b5;p=eros.git off by one --- diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index a76d918..b5217f4 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -246,7 +246,7 @@ def _get_v2_worklist(conn, disk_id: int, target_ranges: List[NumericRange]) -> L ) as block, substring( hashes, - generate_series(lower(check_erange), upper(check_erange) - 1)::integer * 32, + generate_series(lower(check_erange), upper(check_erange) - 1)::integer * 32 + 1, 32 ) as hash, crypt_key