- /*link->capacity = capacity;*/
- /* link->current_bandwidth = bandwidth;
- link->current_latency = latency;*/
-
- /*xbt_dynar_push(sd_global->links, link);*/
- xbt_dict_set(sd_global->links, name, link, __SD_link_destroy); /* add the workstation to the dictionary */
+ const char *name = SD_link_get_name(link);
+ xbt_dict_set(sd_global->links, name, link, __SD_link_destroy); /* add the link to the dictionary */