From 374a22b4b934b3f0d1ebd2ebc2d7c773cf18d200 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 9 Jul 2018 21:06:59 +0300 Subject: [PATCH] bench fix --- bench/bench.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/bench.cpp b/bench/bench.cpp index 0a7b0fb5..c5e8a5a4 100644 --- a/bench/bench.cpp +++ b/bench/bench.cpp @@ -32,8 +32,9 @@ void bench_mt(int howmany, std::shared_ptr log, int thread_count int main(int argc, char *argv[]) { - int queue_size = 1000000; + int howmany = 1000000; + int queue_size = howmany + 2; int threads = 10; int file_size = 30 * 1024 * 1024; int rotating_files = 5;