Make usage of weight

This commit is contained in:
thorkill 2015-07-07 20:35:52 +02:00
parent d49fd87dbc
commit bb3fd0a985

View file

@ -119,8 +119,7 @@ bool edge_update_weigth(edge_t *e, int weight) {
if (!oldnode)
return false;
/* avg_rtt is in ms */
e->weight = e->avg_rtt*10;
e->weight = weight;
oldnode->data = e;
splay_insert_node(edge_weight_tree, oldnode);
return true;