Fixed --randomx-wrmsr option without parameters.
This commit is contained in:
parent
5ab17fcd46
commit
4fb3086c1c
3 changed files with 12 additions and 2 deletions
|
@ -170,6 +170,10 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const
|
|||
return set(doc, kRandomX, "1gb-pages", true);
|
||||
|
||||
case IConfig::RandomXWrmsrKey: /* --randomx-wrmsr */
|
||||
if (arg == nullptr) {
|
||||
return set(doc, kRandomX, "wrmsr", true);
|
||||
}
|
||||
|
||||
return set(doc, kRandomX, "wrmsr", static_cast<int64_t>(strtol(arg, nullptr, 10)));
|
||||
# endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue