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
cosmetics: rename a function, deprecate old name
[simgrid.git]
/
examples
/
s4u
/
app-bittorrent
/
s4u-bittorrent.cpp
diff --git
a/examples/s4u/app-bittorrent/s4u-bittorrent.cpp
b/examples/s4u/app-bittorrent/s4u-bittorrent.cpp
index
38709b0
..
0ce2b97
100644
(file)
--- a/
examples/s4u/app-bittorrent/s4u-bittorrent.cpp
+++ b/
examples/s4u/app-bittorrent/s4u-bittorrent.cpp
@@
-21,8
+21,7
@@
int main(int argc, char* argv[])
HostBittorrent::EXTENSION_ID = simgrid::s4u::Host::extension_create<HostBittorrent>();
HostBittorrent::EXTENSION_ID = simgrid::s4u::Host::extension_create<HostBittorrent>();
- std::vector<simgrid::s4u::Host*> list;
- simgrid::s4u::Engine::getInstance()->getHostList(&list);
+ std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->getAllHosts();
for (auto const& host : list)
host->extension_set(new HostBittorrent(host));
for (auto const& host : list)
host->extension_set(new HostBittorrent(host));