mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add download rate to media progress bar (non http mode only!)
Minor coding style fixes
This commit is contained in:
parent
088b18da3d
commit
c03d7dc8a7
8 changed files with 286 additions and 132 deletions
|
@ -2698,6 +2698,18 @@ float Client::getRTT(void)
|
|||
return m_con.getPeerStat(PEER_ID_SERVER,con::AVG_RTT);
|
||||
}
|
||||
|
||||
float Client::getCurRate(void)
|
||||
{
|
||||
return ( m_con.getLocalStat(con::CUR_INC_RATE) +
|
||||
m_con.getLocalStat(con::CUR_DL_RATE));
|
||||
}
|
||||
|
||||
float Client::getAvgRate(void)
|
||||
{
|
||||
return ( m_con.getLocalStat(con::AVG_INC_RATE) +
|
||||
m_con.getLocalStat(con::AVG_DL_RATE));
|
||||
}
|
||||
|
||||
// IGameDef interface
|
||||
// Under envlock
|
||||
IItemDefManager* Client::getItemDefManager()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue