X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2949e2c105959639ef2e8b13a13cdc18f2daaa8a..fddfee454784a9895b758165407c57f62152bc6e:/teshsuite/s4u/host-multicore-speed-file/host-multicore-speed-file.cpp diff --git a/teshsuite/s4u/host-multicore-speed-file/host-multicore-speed-file.cpp b/teshsuite/s4u/host-multicore-speed-file/host-multicore-speed-file.cpp index 56d133eaa3..e2f65a541e 100644 --- a/teshsuite/s4u/host-multicore-speed-file/host-multicore-speed-file.cpp +++ b/teshsuite/s4u/host-multicore-speed-file/host-multicore-speed-file.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2021. The SimGrid Team. +/* Copyright (c) 2010-2022. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -70,7 +70,7 @@ static void failed_worker() try { XBT_INFO("Waiting big task to finish"); fail->wait(); - } catch (simgrid::ForcefulKillException&) { + } catch (const simgrid::ForcefulKillException&) { XBT_INFO("Unable to finish big task, host went down"); } } @@ -102,12 +102,12 @@ int main(int argc, char* argv[]) ->seal(); zone->seal(); - sg4::Actor::create("carol", simgrid::s4u::Host::by_name("carol"), worker); - sg4::Actor::create("erin", simgrid::s4u::Host::by_name("erin"), failed_worker)->set_auto_restart(true); + sg4::Actor::create("carol", e.host_by_name("carol"), worker); + sg4::Actor::create("erin", e.host_by_name("erin"), failed_worker)->set_auto_restart(true); e.run(); - XBT_INFO("Simulation time %g", simgrid::s4u::Engine::get_clock()); + XBT_INFO("Simulation time %g", sg4::Engine::get_clock()); return 0; }