Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace surf by surf++ and make it compile
[simgrid.git] / src / surf / surf_action.c
index 273f36e1a6620d47b2f0a6ba18009418ca00543c..df348d156eff17b81dbcef4eecca3d8e20e63cf8 100644 (file)
@@ -104,10 +104,10 @@ e_surf_action_state_t surf_action_state_get(surf_action_t action)
   return SURF_ACTION_NOT_IN_THE_SYSTEM;
 }
 
-double surf_action_get_start_time(surf_action_t action)
+/*FIXME:DELETEdouble surf_action_get_start_time(surf_action_t action)
 {
   return action->start;
-}
+}*/
 
 double surf_action_get_finish_time(surf_action_t action)
 {
@@ -439,6 +439,9 @@ void generic_update_actions_state_lazy(double now, double delta, surf_model_t mo
         model->action_state_set((surf_action_t) action,
                                              SURF_ACTION_DONE);
         surf_action_lmm_heap_remove(model->model_private->action_heap,action);
+
+        if (model->gap_remove && model == surf_network_model)
+          model->gap_remove(action);
       }
     }
   }