Skip to content

Commit

Permalink
fix calculate
Browse files Browse the repository at this point in the history
  • Loading branch information
YadominJinta committed Dec 6, 2024
1 parent 49a83b1 commit f407e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/freeze/src/types/chunks/number_chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f407e3e

Please sign in to comment.