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:
MoneroOcean 2024-05-29 08:46:27 -07:00 committed by GitHub
commit 700ba19244
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,6 +68,7 @@ rapidjson::Value MoBenchmark::toJSON(rapidjson::Document &doc) const
Value obj(kObjectType);
for (const Algorithm a : Algorithm::all()) {
if (algo_perf[a.id()] == 0.0f) continue;
obj.AddMember(StringRef(a.name()), algo_perf[a.id()], allocator);
}