Forgot to set node->data

This commit is contained in:
thorkill 2015-07-05 21:58:27 +02:00
parent 25ad32d206
commit 841ca358e0

View file

@ -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);
} }