Added alternative object format for CPU threads.
This commit is contained in:
parent
96fd7545d1
commit
42dc914eec
5 changed files with 106 additions and 46 deletions
|
@ -55,7 +55,7 @@ size_t xmrig::Threads<T>::read(const rapidjson::Value &value)
|
|||
using namespace rapidjson;
|
||||
|
||||
for (auto &member : value.GetObject()) {
|
||||
if (member.value.IsArray()) {
|
||||
if (member.value.IsArray() || member.value.IsObject()) {
|
||||
T threads(member.value);
|
||||
|
||||
if (!threads.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue