Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce the amount of mallocs (and plug a memleak)
[simgrid.git] / src / surf / instr_routing.cpp
index 92d32b3..7d75080 100644 (file)
@@ -265,7 +265,7 @@ void sg_instr_new_host(sg_platf_host_cbarg_t host)
       speed = PJ_type_variable_new ("power", nullptr, container->type);
     }
 
-    double current_speed_state = host->speed_per_pstate->at(host->pstate);
+    double current_speed_state = host->speed_per_pstate[host->pstate];
     new_pajeSetVariable (0, container, speed, current_speed_state);
   }
   if (TRACE_uncategorized()){