-/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* - 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 */
XBT_INFO("Read %llu bytes on '%s'", read, disk->get_cname());
/* - Write 800,000 bytes on Disk3 */
- simgrid::s4u::Disk* disk3 = disk_list.back();
- sg_size_t write_on_disk3 = disk3->write(800000);
+ const simgrid::s4u::Disk* disk3 = disk_list.back();
+ sg_size_t write_on_disk3 = disk3->write(800000);
XBT_INFO("Wrote %llu bytes on '%s'", write_on_disk3, disk3->get_cname());
/* - Attach some user data to disk1 */
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());