Fix warnings

This commit is contained in:
WarmUpTill
2026-05-23 21:27:36 +02:00
parent 748744d1b7
commit b1cc15386f
4 changed files with 7 additions and 8 deletions

View File

@@ -129,12 +129,11 @@ static bool checkCondition(const std::shared_ptr<MacroCondition> &condition)
const auto timeSpent = endTime - startTime;
if (timeSpent >= perfLogThreshold) {
const long int ms =
std::chrono::duration_cast<std::chrono::milliseconds>(
timeSpent)
.count();
blog(LOG_WARNING,
"spent %ld ms in %s condition check of macro '%s'!", ms,
"spent %lld ms in %s condition check of macro '%s'!",
(long long)std::chrono::duration_cast<
std::chrono::milliseconds>(timeSpent)
.count(),
condition->GetId().c_str(),
condition->GetMacro()->Name().c_str());
}