aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/connection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 1c424839f..d941f368a 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;
}
}