Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make communications from an host to itself instantaneous
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 28 Jan 2005 01:16:45 +0000 (01:16 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 28 Jan 2005 01:16:45 +0000 (01:16 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@805 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/network.c

index c3cfc65..9a59eaf 100644 (file)
@@ -403,6 +403,10 @@ static surf_action_t communicate(void *src, void *dst, double size, double rate)
     lmm_update_variable_bound(maxmin_system, action->variable,
                              min(action->rate,SG_TCP_CTE_GAMMA / action->lat_current));
 
+  if(route_size == 0) {
+    surf_action_change_state((surf_action_t) action, SURF_ACTION_DONE);
+  }
+
   for (i = 0; i < route_size; i++)
     lmm_expand(maxmin_system, route[i]->constraint, action->variable, 1.0);