mirror of
https://github.com/xmrig/xmrig.git
synced 2026-02-01 09:43:03 -05:00
Fixed auto configuration without hwloc.
This commit is contained in:
@@ -110,6 +110,16 @@ xmrig::CpuThreads::CpuThreads(const rapidjson::Value &value)
|
||||
}
|
||||
|
||||
|
||||
xmrig::CpuThreads::CpuThreads(size_t count, int intensity)
|
||||
{
|
||||
m_data.reserve(count);
|
||||
|
||||
for (size_t i = 0; i < count; ++i) {
|
||||
add(-1, intensity);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
rapidjson::Value xmrig::CpuThreads::toJSON(rapidjson::Document &doc) const
|
||||
{
|
||||
using namespace rapidjson;
|
||||
|
||||
Reference in New Issue
Block a user