]> AND Public Git Repository - simgrid.git/blobdiff - examples/cpp/plugin-host-load/s4u-plugin-host-load.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cleanup in log categories
[simgrid.git] / examples / cpp / plugin-host-load / s4u-plugin-host-load.cpp
index 4aef718a0f05898264b5d87aa75ea05810b6e837..c46c14b962f22c0aac20e68eed75e67158e4ba36 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved.          */
 
 /* 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. */
@@ -93,8 +93,8 @@ int main(int argc, char* argv[])
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s ../platforms/energy_platform.xml\n", argv[0], argv[0]);
   e.load_platform(argv[1]);
 
-  simgrid::s4u::Actor::create("load_test", simgrid::s4u::Host::by_name("MyHost1"), execute_load_test);
-  simgrid::s4u::Actor::create("change_speed", simgrid::s4u::Host::by_name("MyHost1"), change_speed);
+  simgrid::s4u::Actor::create("load_test", e.host_by_name("MyHost1"), execute_load_test);
+  simgrid::s4u::Actor::create("change_speed", e.host_by_name("MyHost1"), change_speed);
 
   e.run();