Forgot to set node->data
This commit is contained in:
parent
25ad32d206
commit
841ca358e0
1 changed files with 1 additions and 0 deletions
|
@ -344,6 +344,7 @@ void update_edge_weight(void) {
|
||||||
node = splay_unlink(edge_weight_tree, c->edge);
|
node = splay_unlink(edge_weight_tree, c->edge);
|
||||||
/* avg_rtt is in ms */
|
/* avg_rtt is in ms */
|
||||||
c->edge->weight = c->edge->avg_rtt*10;
|
c->edge->weight = c->edge->avg_rtt*10;
|
||||||
|
node->data = c->edge;
|
||||||
splay_insert_node(edge_weight_tree, node);
|
splay_insert_node(edge_weight_tree, node);
|
||||||
send_add_edge(c, c->edge);
|
send_add_edge(c, c->edge);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue