X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7d8a6180b3769b53adbe4600df95074763141495..04f2b15db2c02d9db03aa0f447ace60906a24b67:/src/surf/network_constant.c diff --git a/src/surf/network_constant.c b/src/surf/network_constant.c index d0f25db627..0a2251c829 100644 --- a/src/surf/network_constant.c +++ b/src/surf/network_constant.c @@ -109,12 +109,15 @@ static void netcste_update_resource_state(void *id, DIE_IMPOSSIBLE; } -static surf_action_t netcste_communicate(const char *src_name, - const char *dst_name, double size, - double rate) +static surf_action_t netcste_communicate(sg_routing_edge_t src, + sg_routing_edge_t dst, + double size, double rate) { surf_action_network_Constant_t action = NULL; + char *src_name = src->name; + char *dst_name = dst->name; + XBT_IN("(%s,%s,%g,%g)", src_name, dst_name, size, rate); action = @@ -231,5 +234,5 @@ void surf_network_model_init_Constant() netcste_define_callbacks(); xbt_dynar_push(model_list, &surf_network_model); - routing_model_create(sizeof(double), NULL); + routing_model_create(NULL); }