From 03ecbd1ea89829d4014bdd0d77924358f9e7f35c Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 4 Jan 2013 00:22:20 -0800 Subject: [PATCH] Create a few extra threads. --- src/cpp/ripple/JobQueue.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cpp/ripple/JobQueue.cpp b/src/cpp/ripple/JobQueue.cpp index 47c402c3f..954785204 100644 --- a/src/cpp/ripple/JobQueue.cpp +++ b/src/cpp/ripple/JobQueue.cpp @@ -195,8 +195,9 @@ void JobQueue::setThreadCount(int c) else if (c == 0) { c = boost::thread::hardware_concurrency(); - if (c < 2) - c = 2; + if (c < 0) + c = 0; + c += 2; cLog(lsINFO) << "Auto-tuning to " << c << " validation/transaction/proposal threads"; }