mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-09 04:05:12 -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? */
|
/* Ready to end the block? */
|
||||||
if (total_delta +
|
if (total_delta +
|
||||||
(block_length / 4096) * stats->num_observations >=
|
(block_length / 4096) * stats->num_observations >=
|
||||||
NUM_OBSERVATIONS_PER_BLOCK_CHECK * 200 / 512 *
|
stats->num_new_observations * 200 / 512 *
|
||||||
stats->num_observations)
|
stats->num_observations)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user