From 968ce9af598024ec71e9ffb2d15c3997a13ad754 Mon Sep 17 00:00:00 2001 From: you Date: Sat, 23 Jun 2018 09:16:01 +0200 Subject: RTT fixes (#7428) * Few code updates * Do not show average RTT before timing out * Fix unwanted integer division in RTTStatistics * Fix float format, prettier jitter calculation * Use +=, 0.1f -> 100.0f for stronger average updates --- src/network/peerhandler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/network/peerhandler.h') diff --git a/src/network/peerhandler.h b/src/network/peerhandler.h index 208ab801e..60b7243bc 100644 --- a/src/network/peerhandler.h +++ b/src/network/peerhandler.h @@ -30,7 +30,8 @@ typedef enum { AVG_RTT, MIN_JITTER, MAX_JITTER, - AVG_JITTER + AVG_JITTER, + TIMEOUT_COUNTER } rtt_stat_type; class Peer; -- cgit v1.2.3