X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4e0879e02f32153ee997c27cbe0255309a2668db..4736926935eb52f1e561715d2fa5a3fc4144a188:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index b1896426e4..208484b51b 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -62,7 +62,7 @@ void sg_platf_new_host(sg_platf_host_cbarg_t host) sg_host_t h = simgrid::Host::by_name_or_create(host->id); simgrid::surf::Cpu *cpu = surf_cpu_model_pm->createCpu( - host->id, + h, host->speed_peak, host->pstate, host->speed_scale, @@ -70,7 +70,6 @@ void sg_platf_new_host(sg_platf_host_cbarg_t host) host->core_amount, host->initial_state, host->state_trace); - cpu->plug(h); surf_host_model->createHost(host->id, net, cpu, host->properties)->attach(h); if (TRACE_is_enabled() && TRACE_needs_platform()) sg_instr_new_host(host);