A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allStorages() -> getStorageList(whereTo)
[simgrid.git]
/
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
13b59de
..
5ec1825
100644
(file)
--- a/
examples/s4u/io-file-remote/s4u-io-file-remote.cpp
+++ b/
examples/s4u/io-file-remote/s4u-io-file-remote.cpp
@@
-58,7
+58,8
@@
int main(int argc, char** argv)
e.loadPlatform(argv[1]);
e.registerFunction("host", host);
e.loadDeployment(argv[2]);
e.loadPlatform(argv[1]);
e.registerFunction("host", host);
e.loadDeployment(argv[2]);
- std::map<std::string, simgrid::s4u::Storage*>* allStorages = simgrid::s4u::allStorages();
+ std::map<std::string, simgrid::s4u::Storage*>* allStorages = new std::map<std::string, simgrid::s4u::Storage*>;
+ simgrid::s4u::getStorageList(allStorages);
for (auto const& s : *allStorages) {
XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s.second) / INMEGA,
for (auto const& s : *allStorages) {
XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s.second) / INMEGA,