formatting fixes

This commit is contained in:
Florian Lüke 2024-12-28 17:54:45 +01:00
parent 80ab196d90
commit 9706a19e56

View file

@ -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<std::string>());
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<std::string>();
auto arrayHits = eventArrayIndexHits[ei][ai];
auto sumHits = std::accumulate(std::begin(arrayHits), std::end(arrayHits),
static_cast<size_t>(0u));