From 2189232b799747783e5545d2335afc70a557bca3 Mon Sep 17 00:00:00 2001 From: thorkill Date: Tue, 12 May 2015 17:23:28 +0200 Subject: [PATCH] Init avg. RTT based on weight --- src/protocol_edge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocol_edge.c b/src/protocol_edge.c index 4760162c..dd676310 100644 --- a/src/protocol_edge.c +++ b/src/protocol_edge.c @@ -157,6 +157,7 @@ bool add_edge_h(connection_t *c, const char *request) { e->local_address = local_address; e->options = options; e->weight = weight; + e->avg_rtt = weight/10; edge_add(e); /* Tell the rest about the new edge */