summaryrefslogtreecommitdiff
path: root/src/gui/debugwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r--src/gui/debugwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp
index d7cec480a..0b84dda1e 100644
--- a/src/gui/debugwindow.cpp
+++ b/src/gui/debugwindow.cpp
@@ -382,12 +382,12 @@ void NetDebugTab::logic()
{
if (player_node && player_node->getPingTime() != 0)
{
- mPingLabel->setCaption(strprintf(_("Ping: %d ms"),
- player_node->getPingTime()));
+ mPingLabel->setCaption(strprintf(_("Ping: %s ms"),
+ toString((int)player_node->getPingTime()).c_str()));
}
else
{
- mPingLabel->setCaption(_("Ping: ? ms"));
+ mPingLabel->setCaption(strprintf(_("Ping: %s ms"), "?"));
}
mInPackets1Label->setCaption(strprintf(_("In: %d bytes/s"),