Skip to content

Commit

Permalink
small correction
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbez committed Aug 26, 2024
1 parent b3ce058 commit 5b048f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions h5bench_patterns/h5bench_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5b048f1

Please sign in to comment.