From f407e3e9ac4e5a7425d65c689e96002844f09984 Mon Sep 17 00:00:00 2001 From: Yadomin Jinta Date: Fri, 6 Dec 2024 23:59:45 +0800 Subject: [PATCH] fix calculate --- crates/freeze/src/types/chunks/number_chunk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/freeze/src/types/chunks/number_chunk.rs b/crates/freeze/src/types/chunks/number_chunk.rs index cd88872..bb68d1f 100644 --- a/crates/freeze/src/types/chunks/number_chunk.rs +++ b/crates/freeze/src/types/chunks/number_chunk.rs @@ -77,7 +77,7 @@ impl NumberChunk { match self { NumberChunk::Numbers(numbers) => Some(NumberChunk::Numbers(numbers)), NumberChunk::Range(start, end) => { - let start = start.div_ceil(chunk_size); + let start = start.div_ceil(chunk_size) * chunk_size; let end = (end / chunk_size) * chunk_size; if end > start { Some(NumberChunk::Range(start, end))