surf_cpu_model_t surf_cpu_model = NULL;
lmm_system_t cpu_maxmin_system = NULL;
-xbt_dict_t cpu_set;
+xbt_dict_t cpu_set = NULL;
static void cpu_free(void *cpu)
{
surf_parse_get_trace(&state_trace, A_surfxml_host_state_file);
current_property_set = xbt_dict_new();
- cpu_new(A_surfxml_host_id, power_scale, power_initial, power_trace, state_initial,
- state_trace, /*add the properties*/ current_property_set);
+ cpu_new(xbt_strdup(A_surfxml_host_id), power_scale, power_initial, power_trace, state_initial,
+ state_trace, current_property_set);
}
surf_cpu_model->extension_public->get_available_speed =
get_available_speed;
/*manage the properties of the cpu*/
- surf_cpu_model->common_public->get_cpu_properties = get_properties;
+ surf_cpu_model->common_public->get_properties = get_properties;
if(!cpu_set) cpu_set = xbt_dict_new();
if (!cpu_maxmin_system) cpu_maxmin_system = lmm_system_new();