Skip to content

Commit

Permalink
Also convert units when speaking client stat
Browse files Browse the repository at this point in the history
  • Loading branch information
CoBC authored and bear101 committed Dec 24, 2024
1 parent 3435ee7 commit c09d643
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Client/qtTeamTalk/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4091,7 +4091,7 @@ Vous pouvez la télécharger sur la page suivante:<byte value="xd"/>
<message>
<location filename="../mainwindow.cpp" line="3772"/>
<source>Push To Talk: </source>
<translation>Maintenir-pour-parler</translation>
<translation>Maintenir-pour-parler: </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="3947"/>
Expand Down
6 changes: 3 additions & 3 deletions Client/qtTeamTalk/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2472,7 +2472,7 @@ void MainWindow::timerEvent(QTimerEvent *event)
int ping = stats.nUdpPingTimeMs;
m_clientstats = stats;

QString status = QString("RX: %1 TX: %2").arg(getFormattedSize(rx)).arg(getFormattedSize(tx));
QString status = QString("RX: %1, TX: %2").arg(getFormattedSize(rx)).arg(getFormattedSize(tx));

if(ping != -1)
m_pinglabel->setText(QString("PING: %1").arg(ping));
Expand Down Expand Up @@ -7863,8 +7863,8 @@ void MainWindow::slotSpeakClientStats(bool /*checked = false*/)
float rx = float(stats.nUdpBytesRecv - m_clientstats.nUdpBytesRecv);
float tx = float(stats.nUdpBytesSent - m_clientstats.nUdpBytesSent);
int ping = stats.nUdpPingTimeMs;
QString strstats = QString("RX: %1KB TX: %2KB").arg(rx / 1024.0, 2, 'f', 2, '0').arg(tx / 1024.0, 2, 'f', 2, '0');
QString strstats = QString("RX: %1, TX: %2").arg(getFormattedSize(rx)).arg(getFormattedSize(tx));
if (ping >= 0)
strstats += QString(" PING: %3").arg(ping);
strstats += QString(", PING: %3").arg(ping);
addTextToSpeechMessage(strstats);
}

0 comments on commit c09d643

Please sign in to comment.