mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue