X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e08142f6b96c100165667fe1b647a28b6357b5ed..e116532f2474ef6a8a4a1a66b66fbdf0d17631a8:/teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp diff --git a/teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp b/teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp index a607ed6953..4481bf134b 100644 --- a/teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp +++ b/teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2020. The SimGrid Team. +/* Copyright (c) 2008-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,7 +6,7 @@ /* for i in $(seq 1 20); do - teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time examples/platforms/cluster_backbone.xml 1 + teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time examples/platforms/cluster_backbone.xml sleep 1 done */ @@ -14,7 +14,7 @@ done #include "simgrid/s4u.hpp" #include "xbt/random.hpp" #include "xbt/xbt_os_time.h" -#include +#include int main(int argc, char** argv) { @@ -22,9 +22,10 @@ int main(int argc, char** argv) simgrid::s4u::Engine e(&argc, argv); e.load_platform(argv[1]); + e.seal_platform(); std::vector hosts = e.get_all_hosts(); - int host_count = e.get_host_count(); + int host_count = static_cast(e.get_host_count()); /* Random number initialization */ simgrid::xbt::random::set_mersenne_seed(static_cast(xbt_os_time()));