From bb3fd0a98587802b14c4bb23c91bbe7ae911d762 Mon Sep 17 00:00:00 2001 From: thorkill Date: Tue, 7 Jul 2015 20:35:52 +0200 Subject: [PATCH] Make usage of weight --- src/edge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/edge.c b/src/edge.c index 2d5ad705..3070e9eb 100644 --- a/src/edge.c +++ b/src/edge.c @@ -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;