/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include "src/msg/msg_private.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "simgrid/simix.h"
#include <simgrid/s4u/host.hpp>
-#include "msg_private.hpp"
+#include <numeric>
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg);
*/
int MSG_get_host_number()
{
- return xbt_dict_length(host_list);
+ return sg_host_count();
}
/** \ingroup m_host_management