X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7b138f8b1ed3e8816eda5cb26deb71fe81b4087a..0db7c964785a7e463746904785e2c9b7c7fd7963:/examples/java/app/bittorrent/Main.java diff --git a/examples/java/app/bittorrent/Main.java b/examples/java/app/bittorrent/Main.java index 021b1c54a8..b9185058bb 100644 --- a/examples/java/app/bittorrent/Main.java +++ b/examples/java/app/bittorrent/Main.java @@ -8,6 +8,7 @@ package app.bittorrent; import org.simgrid.msg.Msg; import org.simgrid.msg.MsgException; +import org.simgrid.msg.RngStream; class Main{ private Main() { @@ -15,10 +16,13 @@ class Main{ } public static void main(String[] args) throws MsgException { + int[] seed = { 12345, 12345, 12345, 12345, 12345, 12345 }; + RngStream.setPackageSeed(seed); + Msg.init(args); if(args.length < 2) { Msg.info("Usage : Bittorrent platform_file deployment_file"); - Msg.info("example : Bittorrent ../platforms/platform.xml bittorrent.xml"); + Msg.info("example : Bittorrent ../platforms/cluster.xml bittorrent.xml"); System.exit(1); } @@ -27,6 +31,6 @@ class Main{ Msg.deployApplication(args[1]); /* execute the simulation. */ - Msg.run(); + Msg.run(); } }