X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fad318e69b9130ad51b5bcff09362b1f162f5270..d3ff5bc1abcc24a092161f238c69447a72201746:/teshsuite/msg/app-bittorrent/generate.py diff --git a/teshsuite/msg/app-bittorrent/generate.py b/teshsuite/msg/app-bittorrent/generate.py index f1d2b54e98..2fc26ce158 100755 --- a/teshsuite/msg/app-bittorrent/generate.py +++ b/teshsuite/msg/app-bittorrent/generate.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (c) 2012, 2014, 2016. The SimGrid Team. +# Copyright (c) 2012-2020. The SimGrid Team. # All rights reserved. # This program is free software; you can redistribute it and/or modify it @@ -28,9 +28,9 @@ max_id = 2 ** nb_bits - 1 all_ids = [42] sys.stdout.write("\n" - "\n" + "\n" "\n" - " \n" + " \n" " \n \n" % end_date) for i in range(1, nb_nodes): @@ -38,9 +38,9 @@ for i in range(1, nb_nodes): ok = False while not ok: my_id = random.randint(0, max_id) - ok = not my_id in all_ids + ok = my_id not in all_ids start_date = i * 10 - line = " \n" % i + line = " \n" % i line += " \n \n" % ( my_id, end_date) if random.randint(0, 100) < seed_percentage: