X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c0c6ff6136ed5d29f3b688b0772278ccfea8ac69..d740a86eb8bb0e5d729e0ad55db7395444dad131:/teshsuite/simdag/platforms/flatifier.c?ds=sidebyside diff --git a/teshsuite/simdag/platforms/flatifier.c b/teshsuite/simdag/platforms/flatifier.c index e7321c98dc..5695df80f2 100644 --- a/teshsuite/simdag/platforms/flatifier.c +++ b/teshsuite/simdag/platforms/flatifier.c @@ -88,7 +88,7 @@ int main(int argc, char **argv) SD_workstation_get_name(hosts[i]), SD_workstation_get_power(hosts[i])); props = SD_workstation_get_properties(hosts[i]); - if (props && xbt_dict_length(props) > 0) { + if (props && !xbt_dict_is_empty(props)) { printf(">\n"); xbt_dict_foreach(props, cursor, key, data) { printf(" \n", key, data); @@ -133,10 +133,11 @@ int main(int argc, char **argv) { xbt_lib_foreach(host_lib, cursor_dst, dst, value) //to host { - printf(" \n " + printf(" \n " ,src ,dst); - xbt_dynar_t route = global_routing->get_route(src,dst); + xbt_dynar_t route=NULL; + routing_get_route_and_latency(src,dst,&route,NULL); for(i=0;i\n " + if(routing_get_network_element_type(dst) == SURF_NETWORK_ELEMENT_ROUTER){ + printf(" \n " ,src ,dst); - xbt_dynar_t route = global_routing->get_route(src,dst); + xbt_dynar_t route=NULL; + routing_get_route_and_latency(src,dst,&route,NULL); for(i=0;i\n " + if(routing_get_network_element_type(dst) == SURF_NETWORK_ELEMENT_ROUTER){ + printf(" \n " ,src ,dst); - xbt_dynar_t route = global_routing->get_route(src,dst); + xbt_dynar_t route=NULL; + routing_get_route_and_latency(src,dst,&route,NULL); for(i=0;i\n " - ,src - ,dst); - xbt_dynar_t route = global_routing->get_route(src,dst); + printf(" \n " + ,src, dst); + xbt_dynar_t route=NULL; + routing_get_route_and_latency(src,dst,&route, NULL); for(i=0;i