Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reorganize *LinkImpl stuff
[simgrid.git] / teshsuite / models / ptask_L07_usage / ptask_L07_usage.cpp
index 25e4b78b82db9b964a001f742914468df0092090..87895cb087e0d1af88c6476a568eb701e43d5d2b 100644 (file)
@@ -269,7 +269,7 @@ static void main_dispatcher()
   XBT_INFO("------------------------------------------------------------");
   XBT_INFO("Each host sends 1B to every other hosts.");
   XBT_INFO("Should be done in 8 seconds: 2 x 500ms + 1s of initial latency and 6 seconds for transfer");
-  XBT_INFO("Each SHARED link is traversed by 6 flows (3 in and 3 out). ");
+  XBT_INFO("Each SHARED link is traversed by 6 flows (3 in and 3 out).");
   XBT_INFO("Each 1B transfer thus takes 6 seconds on a 1Bps link");
 
   start_time = sg4::Engine::get_clock();
@@ -325,7 +325,7 @@ int main(int argc, char** argv)
 {
   sg4::Engine engine(&argc, argv);
   engine.load_platform(argv[1]);
-  sg4::Actor::create("dispatcher", sg4::Host::by_name("cpu0"), main_dispatcher);
+  sg4::Actor::create("dispatcher", engine.host_by_name("cpu0"), main_dispatcher);
   engine.run();
 
   return 0;