]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/network_constant.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reno2 now compatible with the new and more appropriated name for define_callbacks...
[simgrid.git] / src / surf / network_constant.c
index 342fae9c5fcb77976ab527d0ed9f8ee874c4d2ea..f961845876888c6f7912aea4d817e98578300192 100644 (file)
@@ -59,7 +59,7 @@ static void parse_route_set_endpoints(void)
   src_id = network_card_new(A_surfxml_route_src);
   dst_id = network_card_new(A_surfxml_route_dst);
   route_action = A_surfxml_route_action;
-  route_link_list = xbt_dynar_new(sizeof(char *), &free_string);
+  route_link_list = xbt_dynar_new(sizeof(char *), &xbt_free_ref);
 }
 
 static void parse_route_set_route(void)
@@ -199,7 +199,7 @@ static void update_actions_state(double now, double delta)
 
 static void update_resource_state(void *id,
                                  tmgr_trace_event_t event_type,
-                                 double value)
+                                 double value, double time)
 {
   DIE_IMPOSSIBLE;
 }
@@ -387,7 +387,7 @@ static void surf_network_model_init_internal(void)
   network_card_set = xbt_dict_new();
 
   if(!random_latency) 
-    random_latency = random_new(RAND, 0.0, 1.0, .125, .034);
+    random_latency = random_new(RAND, 100, 0.0, 1.0, .125, .034);
 }
 
 void surf_network_model_init_Constant(const char *filename)