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