Skip to content

Commit f6f6382

Browse files
committed
bugfix: progress reporting overflow.
1 parent ba23a41 commit f6f6382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memtier_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ run_stats run_benchmark(int run_id, benchmark_config* cfg, object_generator* obj
771771

772772
double progress = 0;
773773
if(cfg->requests)
774-
progress = 100.0 * total_ops / (cfg->requests*cfg->clients*cfg->threads);
774+
progress = 100.0 * total_ops / ((double)cfg->requests*cfg->clients*cfg->threads);
775775
else
776776
progress = 100.0 * (duration / 1000000.0)/cfg->test_time;
777777

0 commit comments

Comments
 (0)