mirror of
https://github.com/minetest/minetest.git
synced 2025-07-04 17:00:23 +02:00
Add download rate to media progress bar (non http mode only!)
Minor coding style fixes
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user