From e2d388b13799ddbe5ba2a81b442d6481cec5b611 Mon Sep 17 00:00:00 2001 From: notsecure Date: Thu, 10 Jul 2014 10:34:38 -0400 Subject: fix send rate going up when peer disconnects --- toxcore/net_crypto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/net_crypto.h') diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h index 4fed0000..2bc9a716 100644 --- a/toxcore/net_crypto.h +++ b/toxcore/net_crypto.h @@ -143,9 +143,9 @@ typedef struct { uint32_t packets_left; uint64_t last_packets_left_set; - double dropped, drop_ignore, rate_increase; + double dropped, drop_ignore, rate_increase, last_send_rate; uint64_t drop_ignore_start, rate_increase_stop_start; - uint32_t packets_resent; + uint32_t packets_resent, last_queue_size, packets_sent, last_packets_sent; uint8_t sending; /* indicates if data is being sent or not. */ -- cgit v1.2.3