X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b87fc0829538ec066fd077e6c30ee6270b8abd78..a8e449cf588e53c1d83aef41a1cbb07995a291c9:/src/kernel/routing/FloydZone.cpp diff --git a/src/kernel/routing/FloydZone.cpp b/src/kernel/routing/FloydZone.cpp index 329eff905f..e680281214 100644 --- a/src/kernel/routing/FloydZone.cpp +++ b/src/kernel/routing/FloydZone.cpp @@ -74,7 +74,7 @@ void FloydZone::getLocalRoute(NetPoint* src, NetPoint* dst, sg_platf_route_cbarg getGlobalRoute(prev_dst_gw, e_route->gw_src, route->link_list, lat); } - for (auto link : *e_route->link_list) { + for (auto const& link : *e_route->link_list) { route->link_list->push_back(link); if (lat) *lat += link->latency(); @@ -140,7 +140,7 @@ void FloydZone::addRoute(sg_platf_route_cbarg_t route) route->gw_dst = gw_tmp; } - if (not route->gw_src && not route->gw_dst) + if (not route->gw_src || not route->gw_dst) XBT_DEBUG("Load Route from \"%s\" to \"%s\"", route->dst->name().c_str(), route->src->name().c_str()); else XBT_DEBUG("Load NetzoneRoute from \"%s(%s)\" to \"%s(%s)\"", route->dst->name().c_str(), route->gw_src->name().c_str(),