From 3c907d6bc48bddd62d41757c70cccf4935897215 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Fri, 26 Nov 2021 23:39:17 +0000 Subject: [PATCH] Fixed float/double algo_perf support --- src/core/MoBenchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/MoBenchmark.cpp b/src/core/MoBenchmark.cpp index cbdd3c87..a504e15a 100644 --- a/src/core/MoBenchmark.cpp +++ b/src/core/MoBenchmark.cpp @@ -96,8 +96,8 @@ void MoBenchmark::read(const rapidjson::Value &value) LOG_INFO("%s " BRIGHT_BLACK_BG(MAGENTA_BOLD_S " Ignoring wrong name for algo-perf[%s] "), Tags::benchmark(), member.name.GetString()); continue; } - if (member.value.IsFloat()) { - algo_perf[algo.id()] = member.value.GetFloat(); + if (member.value.IsDouble()) { + algo_perf[algo.id()] = member.value.GetDouble(); m_isNewBenchRun = false; continue; }