X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b22d6143316480b9f961a60968663d93f25d3f1..6bab9511541790024758a2e8d84b943e2905cc7d:/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 f93c062440..1724054b3f 100644 --- a/examples/s4u/io-file-remote/s4u-io-file-remote.cpp +++ b/examples/s4u/io-file-remote/s4u-io-file-remote.cpp @@ -54,19 +54,18 @@ int main(int argc, char** argv) e.loadPlatform(argv[1]); e.registerFunction("host", host); e.loadDeployment(argv[2]); - std::map allStorages; - simgrid::s4u::getStorageList(&allStorages); + std::vector allStorages = e.getAllStorages(); for (auto const& s : allStorages) { - XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s.second) / INMEGA, - sg_storage_get_size_free(s.second) / INMEGA, s.second->getCname()); + 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()); } e.run(); for (auto const& s : allStorages) { - XBT_INFO("End: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s.second) / INMEGA, - sg_storage_get_size_free(s.second) / INMEGA, s.second->getCname()); + 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()); } XBT_INFO("Simulation time %g", simgrid::s4u::Engine::getClock());