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

Public GIT Repository
Fix more sonar things
[simgrid.git] / examples / cpp / mc-bugged1 / s4u-mc-bugged1.cpp
index 533da73caff8cb9864ca1ecc40f93f814abdb27b..a2b47d9a1d9bd850088a4f766ecfc41722111621 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-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. */
@@ -44,10 +44,10 @@ int main(int argc, char* argv[])
 
   e.load_platform(argv[1]);
 
-  simgrid::s4u::Actor::create("server", simgrid::s4u::Host::by_name("HostA"), server);
-  simgrid::s4u::Actor::create("client", simgrid::s4u::Host::by_name("HostB"), client, 1);
-  simgrid::s4u::Actor::create("client", simgrid::s4u::Host::by_name("HostC"), client, 2);
-  simgrid::s4u::Actor::create("client", simgrid::s4u::Host::by_name("HostD"), client, 3);
+  simgrid::s4u::Actor::create("server", e.host_by_name("HostA"), server);
+  simgrid::s4u::Actor::create("client", e.host_by_name("HostB"), client, 1);
+  simgrid::s4u::Actor::create("client", e.host_by_name("HostC"), client, 2);
+  simgrid::s4u::Actor::create("client", e.host_by_name("HostD"), client, 3);
 
   e.run();
   return 0;