X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/609b277351c837356a7b284127eed888eca3620d..8200cf19b036678aac3c1167bea4513670c98a27:/docs/source/tuto_disk/tuto_disk.cpp diff --git a/docs/source/tuto_disk/tuto_disk.cpp b/docs/source/tuto_disk/tuto_disk.cpp index d64b98fae2..0f487ff4a6 100644 --- a/docs/source/tuto_disk/tuto_disk.cpp +++ b/docs/source/tuto_disk/tuto_disk.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2017-2023. 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. */ @@ -35,7 +35,7 @@ static void estimate_bw(const sg4::Disk* disk, int n, int n_flows, bool read) act->wait(); double elapsed_time = sg4::Engine::get_clock() - cur_time; - printf("%s,%s,%d,%d,%d,%lf\n", disk->get_cname(), read ? "read" : "write", n, n_flows, size, elapsed_time); + printf("%s,%s,%d,%d,%llu,%lf\n", disk->get_cname(), read ? "read" : "write", n, n_flows, size, elapsed_time); } static void host() @@ -60,7 +60,7 @@ class DiskNoise { std::mt19937& gen_; public: - DiskNoise(double capacity, std::mt19937& gen, const std::vector& b, const std::vector h) + DiskNoise(double capacity, std::mt19937& gen, const std::vector& b, const std::vector& h) : bw_(capacity), breaks_(b), heights_(h), gen_(gen) { }