Update weight on reverse edge too

This commit is contained in:
thorkill 2015-07-07 20:49:16 +02:00
parent 0c334bb077
commit 78d0342a12

View file

@ -176,6 +176,9 @@ bool add_edge_h(connection_t *c, const char *request) {
logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) with new weight %d -> %d",
"ADD_EDGE", c->name, c->hostname, e->weight, weight);
edge_update_weigth(e, weight);
if (e->reverse)
edge_update_weigth(e->reverse, weight);
graph();
return true;
} else {