From: Navarrop Date: Fri, 16 Dec 2011 16:21:29 +0000 (+0100) Subject: Fix vivaldi model with lazy update mechanism. :) X-Git-Tag: exp_20120216~237^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3aa9449ca29e0a5ea11202129544e3e81b870e0b?ds=sidebyside Fix vivaldi model with lazy update mechanism. :) --- diff --git a/src/surf/network.c b/src/surf/network.c index a6512e801d..6d43cd88e6 100644 --- a/src/surf/network.c +++ b/src/surf/network.c @@ -804,7 +804,7 @@ static surf_action_t net_communicate(const char *src_name, if(network_update_mechanism == UM_LAZY){ // add to the heap the event when the latency is payed XBT_DEBUG("Added action (%p) one latency event at date %f", action, action->latency + action->last_update); - heap_insert(action, action->latency + action->last_update, LATENCY); + heap_insert(action, action->latency + action->last_update, xbt_dynar_is_empty(route)?NORMAL:LATENCY); } } else action->variable =