diff --git a/h5bench_patterns/h5bench_write.c b/h5bench_patterns/h5bench_write.c index 915b11f..f2e159f 100644 --- a/h5bench_patterns/h5bench_write.c +++ b/h5bench_patterns/h5bench_write.c @@ -1229,11 +1229,11 @@ main(int argc, char *argv[]) value = format_human_readable(total_size_bytes); printf("Total write size: %.3lf %cB\n", value.value, value.unit); + // Assume no compression + float compression_ratio = 1.0; + // Report compression ratio if (COMPRESS_INFO.USE_COMPRESS) { - // Assume no compression - float compression_ratio = 1.0; - if (COMPRESS_INFO.total_compressed_size > 0) { compression_ratio = total_size_bytes / COMPRESS_INFO.total_compressed_size; }