Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cluster with StarZones
[simgrid.git] / src / instr / instr_platform.cpp
index c49bb9cbadd141cb29e2ef79d4af83ee105d5992..908d7b86273d73dbec4c799d5aa21b166b2f111c 100644 (file)
@@ -340,7 +340,7 @@ static void on_action_state_change(kernel::resource::Action const& action,
     double value = action.get_variable()->get_value() * action.get_variable()->get_constraint_weight(i);
     /* Beware of composite actions: ptasks put links and cpus together. Extra pb: we cannot dynamic_cast from void* */
     kernel::resource::Resource* resource = action.get_variable()->get_constraint(i)->get_id();
-    const kernel::resource::Cpu* cpu     = dynamic_cast<kernel::resource::Cpu*>(resource);
+    const kernel::resource::CpuImpl* cpu = dynamic_cast<kernel::resource::CpuImpl*>(resource);
 
     if (cpu != nullptr)
       resource_set_utilization("HOST", "speed_used", cpu->get_cname(), action.get_category(), value,