Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics: rename a function, deprecate old name
[simgrid.git] / examples / s4u / actor-suspend / s4u-actor-suspend.cpp
index 967e803..60aa8ef 100644 (file)
@@ -70,7 +70,7 @@ int main(int argc, char* argv[])
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
   e.loadPlatform(argv[1]); /* - Load the platform description */
-  std::vector<simgrid::s4u::Host*> list = e.getHostList();
+  std::vector<simgrid::s4u::Host*> list = e.getAllHosts();
   simgrid::s4u::Actor::createActor("dream_master", list.front(), dream_master);
 
   e.run(); /* - Run the simulation */