diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index 9c80ce2a9..852ea3406 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);