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

If your ping is in seconds, you probably have other problems.
This commit is contained in:
Oblomov 2020-10-29 20:09:59 +01:00 committed by GitHub
parent 68cd93b865
commit a701d24a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,