X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fff8d47225bf9c230eca9b004f2af8379a89b5a4..526747a744ea55946618ab192e053cd508947259:/src/surf/cpu.c diff --git a/src/surf/cpu.c b/src/surf/cpu.c index d25b8bacdf..2b7f6020e0 100644 --- a/src/surf/cpu.c +++ b/src/surf/cpu.c @@ -65,8 +65,7 @@ static cpu_Cas01_t cpu_new(char *name, double power_peak, lmm_constraint_new(cpu_maxmin_system, cpu, cpu->core * cpu->power_scale * cpu->power_peak); - xbt_dict_set(surf_model_resource_set(surf_cpu_model), name, cpu, - surf_resource_free); + xbt_lib_set(host_lib, name, SURF_CPU_LEVEL, cpu); return cpu; }