Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix VM params once for all - Adrien
[simgrid.git] / src / surf / workstation.c
index dbaf9ae..aa5b387 100644 (file)
@@ -165,8 +165,8 @@ static void adjust_weight_of_dummy_cpu_actions(void)
 
 double ws_share_resources(surf_model_t workstation_model, double now)
 {
 if (workstation_model->type == SURF_MODEL_TYPE_WORKSTATION)
-    adjust_weight_of_dummy_cpu_actions();
+ if (workstation_model->type == SURF_MODEL_TYPE_WORKSTATION)
+   adjust_weight_of_dummy_cpu_actions();
 
   /* Invoke the share_resources() callback of the physical cpu model object and
    * the network model objects. */