Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / teshsuite / s4u / host-multicore-speed-file / host-multicore-speed-file.cpp
index 56d133e..e2f65a5 100644 (file)
@@ -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;
 }