mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-03 09:46:04 -04:00
deflate_compress: use num_new_observations
NUM_OBSERVATIONS_PER_BLOCK_CHECK was being used as an approximation for num_new_observations in one place. Just use num_new_observations.
This commit is contained in:
parent
074ef7db98
commit
968588d19a
@ -2143,7 +2143,7 @@ do_end_block_check(struct block_split_stats *stats, u32 block_length)
|
||||
/* Ready to end the block? */
|
||||
if (total_delta +
|
||||
(block_length / 4096) * stats->num_observations >=
|
||||
NUM_OBSERVATIONS_PER_BLOCK_CHECK * 200 / 512 *
|
||||
stats->num_new_observations * 200 / 512 *
|
||||
stats->num_observations)
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user