Fixed auto configuration without hwloc.

This commit is contained in:
XMRig 2019-08-09 12:51:27 +07:00
parent be251a2ec1
commit 4583d979db
4 changed files with 46 additions and 7 deletions

View file

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