Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
create backbone if either one of the bandwidth or latency is set to a value != 0...
authorAugustin Degomme <degomme@idpann.imag.fr>
Mon, 28 Jan 2013 08:59:38 +0000 (09:59 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Mon, 28 Jan 2013 10:18:17 +0000 (11:18 +0100)
src/surf/surf_routing.c

index e4ce24d..cf77d31 100644 (file)
@@ -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\tid=\"%s\" bw=\"%f\" lat=\"%f\"/>", link_backbone,
               cluster->bb_bw, cluster->bb_lat);