Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
At least. ignore ignorable
[simgrid.git] / src / simdag / sd_link.c
index 4b48633..07e0fa8 100644 (file)
@@ -17,6 +17,10 @@ SD_link_t __SD_link_create(void *surf_link, void *data) {
   link = xbt_new(s_SD_link_t, 1);
   link->surf_link = surf_link;
   link->data = data; /* user data */
+  if(surf_workstation_model->extension_public->link_shared(surf_link))
+    link->sharing_policy=SD_LINK_SHARED;
+  else
+    link->sharing_policy=SD_LINK_FATPIPE;
 
   name = SD_link_get_name(link);
   xbt_dict_set(sd_global->links, name, link, __SD_link_destroy); /* add the link to the dictionary */
@@ -109,7 +113,7 @@ const char* SD_link_get_name(SD_link_t link) {
  * \brief Returns the current bandwidth of a link
  *
  * \param link a link
- * \return the current bandwidth of this link, in Flops
+ * \return the current bandwidth of this link, in bytes per second
  */
 double SD_link_get_current_bandwidth(SD_link_t link) {
   SD_CHECK_INIT_DONE();