Proper throughput calculation.

This commit is contained in:
Bartosz Taudul 2017-09-16 01:47:04 +02:00
parent 1dd723e3ed
commit 2789cc346f

View File

@ -113,7 +113,7 @@ void View::Worker()
{ {
std::lock_guard<std::mutex> lock( m_mbpslock ); std::lock_guard<std::mutex> lock( m_mbpslock );
m_mbps.erase( m_mbps.begin() ); m_mbps.erase( m_mbps.begin() );
m_mbps.emplace_back( 8.f * MbpsUpdateTime * bytes / ( td * 1000 * 1000 ) ); m_mbps.emplace_back( bytes / ( td * 125.f ) );
t0 = t1; t0 = t1;
bytes = 0; bytes = 0;
} }