Skip to content

Commit

Permalink
Merge pull request #136 from Spudz76/pr-mo-algo_perf-zeros
Browse files Browse the repository at this point in the history
MoBenchmark: don't write algo_perf==0.0 items to config
  • Loading branch information
MoneroOcean authored May 29, 2024
2 parents 7e9881b + 7a34e3f commit 700ba19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/MoBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 700ba19

Please sign in to comment.