Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Chaos-monkey: use the new Engine::on_simulation_start signal
[simgrid.git] / src / plugins / chaos_monkey.cpp
index 32c9ba7..da2ee32 100644 (file)
@@ -29,7 +29,7 @@ static void sg_chaos_monkey_plugin_init()
   XBT_INFO("Initializing the chaos monkey");
 
   // delay the initialization until after the parameter are parsed
-  sg4::Engine::on_platform_created_cb([]() {
+  sg4::Engine::on_simulation_start_cb([]() {
     auto engine = sg4::Engine::get_instance();
     auto hosts  = engine->get_all_hosts();
     auto links  = engine->get_all_links();