Init avg. RTT based on weight
This commit is contained in:
parent
bb2084da59
commit
2189232b79
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue