Init avg. RTT based on weight

This commit is contained in:
thorkill 2015-05-12 17:23:28 +02:00
parent bb2084da59
commit 2189232b79

View file

@ -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 */