From 7f2518393624e37e0dad6379a49084c89f7cd177 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 21 Oct 2011 11:52:26 +0300 Subject: [PATCH] Some tuning in m_max_packets_per_second algorithm --- src/connection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connection.cpp b/src/connection.cpp index 1c424839..d941f368 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -469,8 +469,9 @@ void Peer::reportRTT(float rtt) if(m_max_packets_per_second < 100) m_max_packets_per_second += 2; } else { - if(m_max_packets_per_second > 5) - m_max_packets_per_second *= 0.5; + m_max_packets_per_second *= 0.8; + if(m_max_packets_per_second < 10) + m_max_packets_per_second = 10; } } -- 2.30.2