Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add new exemple of dag with comm
[simgrid.git] / examples / cpp / io-disk-raw / s4u-io-disk-raw.cpp
index 8bd956420b45e9a407ad4ea6537e6fc9cbcf7dc9..43b511fd76164d0c507dbebf1a71c4bbfedac995 100644 (file)
@@ -22,7 +22,7 @@ static void host()
 
   /* - For each disk mounted on host, display disk name and mount point */
   for (auto const& disk : disk_list)
-    XBT_INFO("Disk name: %s (read: %.0f B/s -- write: %.0f B/s ", disk->get_cname(), disk->get_read_bandwidth(),
+    XBT_INFO("Disk name: %s (read: %.0f B/s -- write: %.0f B/s", disk->get_cname(), disk->get_read_bandwidth(),
              disk->get_write_bandwidth());
 
   /* - Write 400,000 bytes on Disk1 */
@@ -64,8 +64,7 @@ int main(int argc, char** argv)
       XBT_INFO("  %s -> %s", kv.first.c_str(), kv.second.c_str());
   }
 
-
-  simgrid::s4u::Actor::create("", simgrid::s4u::Host::by_name("bob"), host);
+  simgrid::s4u::Actor::create("", e.host_by_name("bob"), host);
 
   e.run();
   XBT_INFO("Simulated time: %g", simgrid::s4u::Engine::get_clock());