Fixed, for Argon2 algorithms command line options, like --threads was ignored.

This commit is contained in:
XMRig 2019-08-30 18:55:53 +07:00
parent fa983eee0e
commit df90b299f2
2 changed files with 3 additions and 0 deletions

View file

@ -96,6 +96,8 @@ void xmrig::ConfigTransform::finalize(rapidjson::Document &doc)
BaseTransform::finalize(doc);
if (m_threads) {
doc.AddMember("version", 1, allocator);
if (!doc.HasMember(kCpu)) {
doc.AddMember(StringRef(kCpu), Value(kObjectType), allocator);
}