host_number_int++;
}
-static void netcste_define_callbacks(const char *file)
+static void netcste_define_callbacks(void)
{
surfxml_add_callback(STag_surfxml_host_cb_list, &netcste_count_hosts);
}
{
surf_action_network_Constant_t action = NULL;
- XBT_IN_F("(%s,%s,%g,%g)", src_name, dst_name, size, rate);
+ XBT_IN("(%s,%s,%g,%g)", src_name, dst_name, size, rate);
action =
surf_action_new(sizeof(s_surf_action_network_Constant_t), size,
action->suspended = 0;
- action->latency = 1; //random_generate(random_latency);
+ action->latency = sg_latency_factor; //random_generate(random_latency);
action->lat_init = action->latency;
if (action->latency <= 0.0) {
xbt_swag_insert(action, action->generic_action.state_set);
}
- XBT_OUT;
+ XBT_OUT();
return (surf_action_t) action;
}
-void surf_network_model_init_Constant(const char *filename)
+void surf_network_model_init_Constant()
{
xbt_assert(surf_network_model == NULL);
if (surf_network_model)
if (!random_latency)
random_latency = random_new(RAND, 100, 0.0, 1.0, .125, .034);
- netcste_define_callbacks(filename);
+ netcste_define_callbacks();
xbt_dynar_push(model_list, &surf_network_model);
update_model_description(surf_network_model_description,