X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4ff3a4cf6e03165421f65616a22be86b8f528e21..debe4e5871c0c3d1c714bbb1bd28ba7147454aa5:/examples/s4u/exec-monitor/s4u-exec-monitor.cpp diff --git a/examples/s4u/exec-monitor/s4u-exec-monitor.cpp b/examples/s4u/exec-monitor/s4u-exec-monitor.cpp index be0022bd54..65fd8aca25 100644 --- a/examples/s4u/exec-monitor/s4u-exec-monitor.cpp +++ b/examples/s4u/exec-monitor/s4u-exec-monitor.cpp @@ -1,12 +1,9 @@ -/* Copyright (c) 2017-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2017-2019. 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. */ #include "simgrid/s4u.hpp" -#include "simgrid/forward.h" -#include "simgrid/s4u/VirtualMachine.hpp" -#include "simgrid/s4u/forward.hpp" XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example"); @@ -14,7 +11,7 @@ static void monitor(simgrid::s4u::ExecPtr activity) { while (not activity->test()) { XBT_INFO("activity remaining duration: %g (%.0f%%)", activity->get_remaining(), - 100 * activity->getRemainingRatio()); + 100 * activity->get_remaining_ratio()); simgrid::s4u::this_actor::sleep_for(5); } XBT_INFO("My task is over."); @@ -42,7 +39,7 @@ static void executor() int main(int argc, char* argv[]) { simgrid::s4u::Engine e(&argc, argv); - e.loadPlatform(argv[1]); + e.load_platform(argv[1]); simgrid::s4u::Actor::create("executor", simgrid::s4u::Host::by_name("Fafard"), executor);