Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a platform file which should activate the auto-non-symmetrical behavior of surf routi...
[simgrid.git] / src / instr / surf_instr.c
index 2f9f930..7c642c0 100644 (file)
@@ -86,6 +86,10 @@ void TRACE_surf_link_declaration(void *link, char *name, double bw,
   if (!IS_TRACING)
     return;
 
+  if (!link){
+    xbt_die ("link is NULL");
+  }
+
   //filter out loopback
   if (!strcmp(name, "loopback") || !strcmp(name, "__loopback__"))
     return;
@@ -237,8 +241,8 @@ void TRACE_surf_save_onelink(void)
       char resource[100];
       snprintf(resource, 100, "%p", link);
 
-      pajeNewEvent(0.1, "source", resource, src);
-      pajeNewEvent(0.1, "destination", resource, dst);
+      pajeNewEvent(0, "source", resource, src);
+      pajeNewEvent(0, "destination", resource, dst);
     }
   }
 }