Skip to content

Commit

Permalink
Show RTT in ms with 2 digits of precision (#10573)
Browse files Browse the repository at this point in the history
If your ping is in seconds, you probably have other problems.
  • Loading branch information
Oblomov committed Oct 29, 2020
1 parent 68cd93b commit a701d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/gameui.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit a701d24

Please sign in to comment.