mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 17:32:47 -05:00
Merge pull request #136 from Spudz76/pr-mo-algo_perf-zeros
MoBenchmark: don't write algo_perf==0.0 items to config
This commit is contained in:
@@ -68,6 +68,7 @@ rapidjson::Value MoBenchmark::toJSON(rapidjson::Document &doc) const
|
|||||||
Value obj(kObjectType);
|
Value obj(kObjectType);
|
||||||
|
|
||||||
for (const Algorithm a : Algorithm::all()) {
|
for (const Algorithm a : Algorithm::all()) {
|
||||||
|
if (algo_perf[a.id()] == 0.0f) continue;
|
||||||
obj.AddMember(StringRef(a.name()), algo_perf[a.id()], allocator);
|
obj.AddMember(StringRef(a.name()), algo_perf[a.id()], allocator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user