mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 16:05:05 -05:00
More cleanup.
This commit is contained in:
@@ -23,8 +23,9 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "base/io/json/Json.h"
|
||||
#include "crypto/rx/RxConfig.h"
|
||||
#include "backend/cpu/Cpu.h"
|
||||
#include "base/io/json/Json.h"
|
||||
#include "rapidjson/document.h"
|
||||
|
||||
|
||||
@@ -61,3 +62,17 @@ bool xmrig::RxConfig::read(const rapidjson::Value &value)
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
#ifdef XMRIG_FEATURE_HWLOC
|
||||
bool xmrig::RxConfig::isNUMA() const
|
||||
{
|
||||
return m_numa && Cpu::info()->nodes() > 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
uint32_t xmrig::RxConfig::threads() const
|
||||
{
|
||||
return m_threads < 1 ? static_cast<uint32_t>(Cpu::info()->threads()) : static_cast<uint32_t>(m_threads);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user