From 9706a19e56fb3579eb1eec5d1b1865260abed187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20L=C3=BCke?= Date: Sat, 28 Dec 2024 17:54:45 +0100 Subject: [PATCH] formatting fixes --- src/internal/mana_analysis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/mana_analysis.h b/src/internal/mana_analysis.h index e2a2a09..4f216e6 100644 --- a/src/internal/mana_analysis.h +++ b/src/internal/mana_analysis.h @@ -75,7 +75,7 @@ auto_match_modules(const mvlc::CrateConfig &crateConfig, const nlohmann::json &m jModule["name"] = fmt::format("{}.{}", event.getName(), module_.name); for (auto &jSource: jModule["data_sources"]) jSource["name"] = - fmt::format("{}.{}.{}", event.getName(), module_.name, jSource["name"]); + fmt::format("{}.{}.{}", event.getName(), module_.name, jSource["name"].get()); break; } } @@ -310,7 +310,7 @@ struct ManaCountingSink: public IManaSink spdlog::info("event[{}]: {} hits", ei, eventCounts[ei]); for (size_t ai = 0; ai < eventArrayIndexHits[ei].size(); ++ai) { - auto name = jRun["events"][ei]["outputs"][ai]["name"]; + auto name = jRun["events"][ei]["outputs"][ai]["name"].get(); auto arrayHits = eventArrayIndexHits[ei][ai]; auto sumHits = std::accumulate(std::begin(arrayHits), std::end(arrayHits), static_cast(0u));