X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3c54d02850abee2eae461d8bf2d02684ea3c7597..e3bb3fa0da0fe033ac8ff471ea382010177855c8:/src/msg/msg_host.cpp diff --git a/src/msg/msg_host.cpp b/src/msg/msg_host.cpp index 6a56a66425..1d369c0313 100644 --- a/src/msg/msg_host.cpp +++ b/src/msg/msg_host.cpp @@ -9,6 +9,7 @@ #include "xbt/log.h" #include "simgrid/simix.h" #include +#include XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg); @@ -127,7 +128,7 @@ void __MSG_host_priv_free(msg_host_priv_t priv) */ int MSG_get_host_number() { - return xbt_dict_length(host_list); + return sg_host_count(); } /** \ingroup m_host_management