Fixed auto configuration without hwloc.
This commit is contained in:
parent
be251a2ec1
commit
4583d979db
4 changed files with 46 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue