From 3aa9449ca29e0a5ea11202129544e3e81b870e0b Mon Sep 17 00:00:00 2001 From: Navarrop Date: Fri, 16 Dec 2011 17:21:29 +0100 Subject: [PATCH] Fix vivaldi model with lazy update mechanism. :) --- src/surf/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- 2.20.1