summaryrefslogtreecommitdiff
path: root/toxcore/Lossless_UDP.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Lossless_UDP.c')
-rw-r--r--toxcore/Lossless_UDP.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/Lossless_UDP.c b/toxcore/Lossless_UDP.c
index ce1779ec..8b9beb63 100644
--- a/toxcore/Lossless_UDP.c
+++ b/toxcore/Lossless_UDP.c
@@ -860,8 +860,8 @@ static void adjust_datasendspeed(Connection *connection, uint32_t req_packets)
860 return; 860 return;
861 } 861 }
862 862
863 if (req_packets <= (connection->data_rate / connection->SYNC_rate) / 5 || req_packets <= 10) { 863 if (req_packets <= (connection->data_rate / connection->SYNC_rate) / 4 || req_packets <= 10) {
864 connection->data_rate += (connection->data_rate / 8) + 1; 864 connection->data_rate += (connection->data_rate / 4) + 1;
865 865
866 if (connection->data_rate > connection->sendbuffer_length * connection->SYNC_rate) 866 if (connection->data_rate > connection->sendbuffer_length * connection->SYNC_rate)
867 connection->data_rate = connection->sendbuffer_length * connection->SYNC_rate; 867 connection->data_rate = connection->sendbuffer_length * connection->SYNC_rate;