Create a few extra threads.

This commit is contained in:
JoelKatz
2013-01-04 00:22:20 -08:00
parent 06c54c425c
commit 03ecbd1ea8

View File

@@ -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";
}