Skip to content
Permalink
Browse files

Show RTT in ms with 2 digits of precision (#10573)

If your ping is in seconds, you probably have other problems.
  • Loading branch information
Oblomov committed Oct 29, 2020
1 parent 68cd93b commit a701d24a0070f3f581c47e5722aa07d4f89d7b98
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/client/gameui.cpp
@@ -116,8 +116,8 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_
<< std::setprecision(1)
<< " | view range: "
<< (draw_control->range_all ? "All" : itos(draw_control->wanted_range))
<< std::setprecision(3)
<< " | RTT: " << client->getRTT() << "s";
<< std::setprecision(2)
<< " | RTT: " << (client->getRTT() * 1000.0f) << "ms";
setStaticText(m_guitext, utf8_to_wide(os.str()).c_str());

m_guitext->setRelativePosition(core::rect<s32>(5, 5, screensize.X,

0 comments on commit a701d24

Please sign in to comment.
You can’t perform that action at this time.