X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e94fcb9e17e47de65735259276764ea4246ec5d..c1c7acf4ea5ee23e3f033480f15b8e97944c6ccf:/teshsuite/s4u/actor-suspend/actor-suspend.cpp diff --git a/teshsuite/s4u/actor-suspend/actor-suspend.cpp b/teshsuite/s4u/actor-suspend/actor-suspend.cpp index 167313ef3b..c39dccf604 100644 --- a/teshsuite/s4u/actor-suspend/actor-suspend.cpp +++ b/teshsuite/s4u/actor-suspend/actor-suspend.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2020-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2020-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. */ @@ -53,7 +53,7 @@ int main(int argc, char** argv) simgrid::s4u::Engine engine(&argc, argv); engine.load_platform(argv[1]); - simgrid::s4u::Host* host = simgrid::s4u::Host::by_name("Tremblay"); + simgrid::s4u::Host* host = engine.host_by_name("Tremblay"); simgrid::s4u::Actor::create("Suspender", host, Suspender()); receiver = simgrid::s4u::Actor::create("Receiver", host, Receiver());