diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index 9c80ce2a93ec23057054844d599e0c80bc0b24b8..852ea340669552218b308a38a93726d4ee7d659b 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -5220,7 +5220,7 @@ class Benchmark { } Duration duration(FLAGS_duration, reads_); - while (!duration.Done(1)) { + while (!duration.Done(entries_per_batch_)) { DB* db = SelectDB(thread); if (FLAGS_multiread_stride) { int64_t key = GetRandomKey(&thread->rand);