mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Create a few extra threads.
This commit is contained in:
@@ -195,8 +195,9 @@ void JobQueue::setThreadCount(int c)
|
|||||||
else if (c == 0)
|
else if (c == 0)
|
||||||
{
|
{
|
||||||
c = boost::thread::hardware_concurrency();
|
c = boost::thread::hardware_concurrency();
|
||||||
if (c < 2)
|
if (c < 0)
|
||||||
c = 2;
|
c = 0;
|
||||||
|
c += 2;
|
||||||
cLog(lsINFO) << "Auto-tuning to " << c << " validation/transaction/proposal threads";
|
cLog(lsINFO) << "Auto-tuning to " << c << " validation/transaction/proposal threads";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user