formatting fixes
This commit is contained in:
parent
80ab196d90
commit
9706a19e56
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ auto_match_modules(const mvlc::CrateConfig &crateConfig, const nlohmann::json &m
|
||||||
jModule["name"] = fmt::format("{}.{}", event.getName(), module_.name);
|
jModule["name"] = fmt::format("{}.{}", event.getName(), module_.name);
|
||||||
for (auto &jSource: jModule["data_sources"])
|
for (auto &jSource: jModule["data_sources"])
|
||||||
jSource["name"] =
|
jSource["name"] =
|
||||||
fmt::format("{}.{}.{}", event.getName(), module_.name, jSource["name"]);
|
fmt::format("{}.{}.{}", event.getName(), module_.name, jSource["name"].get<std::string>());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -310,7 +310,7 @@ struct ManaCountingSink: public IManaSink
|
||||||
spdlog::info("event[{}]: {} hits", ei, eventCounts[ei]);
|
spdlog::info("event[{}]: {} hits", ei, eventCounts[ei]);
|
||||||
for (size_t ai = 0; ai < eventArrayIndexHits[ei].size(); ++ai)
|
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 arrayHits = eventArrayIndexHits[ei][ai];
|
||||||
auto sumHits = std::accumulate(std::begin(arrayHits), std::end(arrayHits),
|
auto sumHits = std::accumulate(std::begin(arrayHits), std::end(arrayHits),
|
||||||
static_cast<size_t>(0u));
|
static_cast<size_t>(0u));
|
||||||
|
|
Loading…
Reference in a new issue