mirror of
https://github.com/xmrig/xmrig.git
synced 2025-03-12 09:37:35 +00:00
Fix --threads generates "*" profile without "kawpow":false to negate it.
This commit is contained in:
parent
a459dd7741
commit
8027716264
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,7 @@ static const char *kAsterisk = "*";
|
|||
static const char *kEnabled = "enabled";
|
||||
static const char *kIntensity = "intensity";
|
||||
static const char *kThreads = "threads";
|
||||
static const char *kKawPow = "kawpow";
|
||||
|
||||
|
||||
static inline uint64_t intensity(uint64_t av)
|
||||
|
@ -102,6 +103,7 @@ void xmrig::ConfigTransform::finalize(rapidjson::Document &doc)
|
|||
profile.AddMember(StringRef(kThreads), m_threads, allocator);
|
||||
profile.AddMember(StringRef(kAffinity), m_affinity, allocator);
|
||||
|
||||
doc[CpuConfig::kField].AddMember(StringRef(kKawPow), false, doc.GetAllocator());
|
||||
doc[CpuConfig::kField].AddMember(StringRef(kAsterisk), profile, doc.GetAllocator());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue