X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/efa3d5379cb7bfc5d64c839af8b6d036d86460c1..29e444d885c6079db52621b1edfd4f5411ef7bff:/src/s4u/s4u_Host.cpp diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 81f615899e..04d1f581ef 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -164,7 +164,7 @@ void Host::route_to(const Host* dest, std::vector& XBT_CDEBUG(surf_route, "Route from '%s' to '%s' (latency: %f):", get_cname(), dest->get_cname(), (latency == nullptr ? -1 : *latency)); for (auto const& link : links) - XBT_CDEBUG(surf_route, "Link %s", link->get_cname()); + XBT_CDEBUG(surf_route, " Link '%s'", link->get_cname()); } } @@ -204,7 +204,7 @@ void Host::set_property(const std::string& key, const std::string& value) kernel::actor::simcall([this, &key, &value] { this->pimpl_->set_property(key, value); }); } -void Host::set_properties(const std::map& properties) +void Host::set_properties(const std::unordered_map& properties) { kernel::actor::simcall([this, &properties] { this->pimpl_->set_properties(properties); }); } @@ -319,7 +319,7 @@ size_t sg_host_count() } sg_host_t* sg_host_list() { - simgrid::s4u::Engine* e = simgrid::s4u::Engine::get_instance(); + const simgrid::s4u::Engine* e = simgrid::s4u::Engine::get_instance(); size_t host_count = e->get_host_count(); xbt_assert(host_count > 0, "There is no host!"); std::vector hosts = e->get_all_hosts();