X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a3a100990355eb757dc81106b5aac6daed0b8e1..6157f90cc9d3cce63b341338c15e91af8ccd6347:/examples/s4u/io-file-remote/s4u-io-file-remote.cpp diff --git a/examples/s4u/io-file-remote/s4u-io-file-remote.cpp b/examples/s4u/io-file-remote/s4u-io-file-remote.cpp index 1724054b3f..dca06d5625 100644 --- a/examples/s4u/io-file-remote/s4u-io-file-remote.cpp +++ b/examples/s4u/io-file-remote/s4u-io-file-remote.cpp @@ -1,10 +1,10 @@ -/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2018. 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 #include -#include #include #define INMEGA (1024 * 1024) @@ -35,11 +35,11 @@ static int host(int argc, char* argv[]) if (std::stoi(argv[5]) != 0) { XBT_INFO("Move '%s' (of size %llu) from '%s' to '%s'", filename, remoteFile.size(), - simgrid::s4u::Host::current()->getCname(), argv[3]); + simgrid::s4u::Host::current()->get_cname(), argv[3]); remoteFile.remoteMove(simgrid::s4u::Host::by_name(argv[3]), argv[4]); } else { XBT_INFO("Copy '%s' (of size %llu) from '%s' to '%s'", filename, remoteFile.size(), - simgrid::s4u::Host::current()->getCname(), argv[3]); + simgrid::s4u::Host::current()->get_cname(), argv[3]); remoteFile.remoteCopy(simgrid::s4u::Host::by_name(argv[3]), argv[4]); } } @@ -58,14 +58,14 @@ int main(int argc, char** argv) for (auto const& s : allStorages) { XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s) / INMEGA, - sg_storage_get_size_free(s) / INMEGA, s->getCname()); + sg_storage_get_size_free(s) / INMEGA, s->get_cname()); } e.run(); for (auto const& s : allStorages) { XBT_INFO("End: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s) / INMEGA, - sg_storage_get_size_free(s) / INMEGA, s->getCname()); + sg_storage_get_size_free(s) / INMEGA, s->get_cname()); } XBT_INFO("Simulation time %g", simgrid::s4u::Engine::getClock());