mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 16:52:40 -05:00
Allow to use integer numbers in algo-perf again
This commit is contained in:
@@ -76,12 +76,17 @@ void Benchmark::read(const rapidjson::Value &value)
|
|||||||
LOG_ALERT("Ignoring wrong algo-perf name %s", member.name.GetString());
|
LOG_ALERT("Ignoring wrong algo-perf name %s", member.name.GetString());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!member.value.IsFloat()) {
|
if (member.value.IsFloat()) {
|
||||||
LOG_ALERT("Ignoring wrong value for %s algo-perf", member.name.GetString());
|
algo_perf[algo.id()] = member.value.GetFloat();
|
||||||
|
m_isNewBenchRun = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
algo_perf[algo.id()] = member.value.GetFloat();
|
if (member.value.IsInt()) {
|
||||||
m_isNewBenchRun = false;
|
algo_perf[algo.id()] = member.value.GetInt();
|
||||||
|
m_isNewBenchRun = false;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
LOG_ALERT("Ignoring wrong value for %s algo-perf", member.name.GetString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user