From: Augustin Degomme Date: Mon, 28 Jan 2013 08:59:38 +0000 (+0100) Subject: create backbone if either one of the bandwidth or latency is set to a value != 0... X-Git-Tag: v3_9_rc1~51 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ef10f0c17cccc20c91befa9727ad9c4932827697 create backbone if either one of the bandwidth or latency is set to a value != 0, fixes #14873 --- diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index e4ce24ded5..cf77d3191d 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -923,7 +923,7 @@ static void routing_parse_cluster(sg_platf_cluster_cbarg_t cluster) free(newid); //Make the backbone - if ((cluster->bb_bw != 0) && (cluster->bb_lat != 0)) { + if ((cluster->bb_bw != 0) || (cluster->bb_lat != 0)) { char *link_backbone = bprintf("%s_backbone", cluster->id); XBT_DEBUG("", link_backbone, cluster->bb_bw, cluster->bb_lat);