X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a8cd62135619ad52e05ae1c929ef07e166e4260..99b455e92cd42625814c8bfd1d47b28feb65fe35:/examples/msg/chord/generate.py diff --git a/examples/msg/chord/generate.py b/examples/msg/chord/generate.py index cc24945eae..3b707ac48a 100755 --- a/examples/msg/chord/generate.py +++ b/examples/msg/chord/generate.py @@ -1,4 +1,10 @@ -#!/usr/bin/python +#!/usr/bin/env python + +# Copyright (c) 2011-2012, 2014. 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. # This script generates a specific deployment file for the Chord example. # It assumes that the platform will be a cluster. @@ -21,7 +27,7 @@ all_ids = [42] sys.stdout.write("\n" "\n" "\n" -" \n" % end_date) +" \n" % end_date) for i in range(1, nb_nodes): @@ -32,7 +38,7 @@ for i in range(1, nb_nodes): known_id = all_ids[random.randint(0, len(all_ids) - 1)] start_date = i * 10 - line = " \n" % (i, my_id, known_id, start_date, end_date) + line = " \n" % (i, my_id, known_id, start_date, end_date) sys.stdout.write(line) all_ids.append(my_id)