forked from premiere/premiere-libtorrent
one last stats fix
This commit is contained in:
parent
786af218e1
commit
2e71bc818c
|
@ -41,8 +41,6 @@ namespace libtorrent {
|
|||
|
||||
void stat_channel::second_tick(int tick_interval_ms)
|
||||
{
|
||||
if (m_counter == 0) return;
|
||||
|
||||
int sample = int(size_type(m_counter) * 1000 / tick_interval_ms);
|
||||
TORRENT_ASSERT(sample >= 0);
|
||||
m_average = m_average * 3 / 4 + sample / 4;
|
||||
|
|
Loading…
Reference in New Issue