Correcting math for compression ratio in logger.

As titled.