- if (size_ > 0) {
- std::unordered_set<const char*> affected_links;
- double lat = 0.0;
- std::vector<StandardLinkImpl*> route;
- src_host_->route_to(dst_host_, route, &lat);
- latency = std::max(latency, lat);
-
- for (auto const& link : route)
- affected_links.insert(link->get_cname());
-
- link_nb = affected_links.size();
- }
+ /* there should always be a route between src_host and dst_host (loopback_ for self communication at least) */
+ double lat = 0.0;
+ std::vector<StandardLinkImpl*> route;
+ src_host_->route_to(dst_host_, route, &lat);
+ latency = std::max(latency, lat);
+ link_nb = route.size();