forked from Mirrorlandia_minetest/minetest
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:
parent
68cd93b865
commit
a701d24a00
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user