show total time in balancing target arenas

This commit is contained in:
2026-07-04 08:07:52 +02:00
parent fcaee000fa
commit 24e0999d8a
8 changed files with 32 additions and 4 deletions

View File

@@ -373,9 +373,17 @@ void BalancingWindow::writeLog()
for (const ArenaEntry& entry : m_arenas)
{
const ArenaStatus& status = entry.widget->getLastStatus();
const ArenaWidget::State state = entry.widget->getState();
QString stateSuffix = stateText(state);
if (state == ArenaWidget::State::Ended)
{
stateSuffix += QStringLiteral(", %1 s")
.arg(QString::number(status.durationSeconds, 'f', 1));
}
out << "\n## Arena: " << QString::fromStdString(entry.config.name)
<< " (" << stateText(entry.widget->getState()) << ")\n\n";
<< " (" << stateSuffix << ")\n\n";
out << "| " << teamHeaderCell(status, 0) << " | "
<< teamHeaderCell(status, 1) << " |\n";