X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b87fc0829538ec066fd077e6c30ee6270b8abd78..5f1dc33c9f76ee99973ba93f034f031451398ebe:/src/surf/instr_surf.cpp diff --git a/src/surf/instr_surf.cpp b/src/surf/instr_surf.cpp index 4d45aa1169..83f7e1e227 100644 --- a/src/surf/instr_surf.cpp +++ b/src/surf/instr_surf.cpp @@ -13,8 +13,8 @@ void TRACE_surf_host_set_speed(double date, const char *resource, double speed) { if (TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) { container_t container = PJ_container_get(resource); - type_t type = PJ_type_get ("power", container->type); - new SetVariableEvent(date, container, type, speed); + simgrid::instr::Type* type = container->type_->getChild("power"); + new simgrid::instr::SetVariableEvent(date, container, type, speed); } } @@ -22,8 +22,8 @@ void TRACE_surf_link_set_bandwidth(double date, const char *resource, double ban { if (TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) { container_t container = PJ_container_get(resource); - type_t type = PJ_type_get ("bandwidth", container->type); - new SetVariableEvent(date, container, type, bandwidth); + simgrid::instr::Type* type = container->type_->getChild("bandwidth"); + new simgrid::instr::SetVariableEvent(date, container, type, bandwidth); } }