]> AND Public Git Repository - simgrid.git/blobdiff - src/msg/msg_host.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce the layering madness a bit
[simgrid.git] / src / msg / msg_host.cpp
index 6a56a6642569bfe1647cec28fbab838bd58fff86..92358c2dbbf19422dcbf0da40b861ef5e5e9cc00 100644 (file)
@@ -9,6 +9,7 @@
 #include "xbt/log.h"
 #include "simgrid/simix.h"
 #include <simgrid/s4u/host.hpp>
+#include <numeric>
 
 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
@@ -162,7 +163,7 @@ double MSG_get_host_speed(msg_host_t host) {
  * \return the number of cores
  */
 int MSG_host_get_core_number(msg_host_t host) {
-  return host->coresCount();
+  return host->coreCount();
 }
 
 /** \ingroup m_host_management