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:
Eric Biggers 2022-01-04 21:34:22 -08:00
parent 074ef7db98
commit 968588d19a

View File

@ -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;
}