Make usage of weight
This commit is contained in:
parent
d49fd87dbc
commit
bb3fd0a985
1 changed files with 1 additions and 2 deletions
|
@ -119,8 +119,7 @@ bool edge_update_weigth(edge_t *e, int weight) {
|
||||||
if (!oldnode)
|
if (!oldnode)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* avg_rtt is in ms */
|
e->weight = weight;
|
||||||
e->weight = e->avg_rtt*10;
|
|
||||||
oldnode->data = e;
|
oldnode->data = e;
|
||||||
splay_insert_node(edge_weight_tree, oldnode);
|
splay_insert_node(edge_weight_tree, oldnode);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue