X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08e7455d67920bbd7a87f440d00f2c1e071314a0..ea74f5d95928a521a588737e81f1de94eef25d19:/examples/deprecated/java/app/tokenring/Main.java diff --git a/examples/deprecated/java/app/tokenring/Main.java b/examples/deprecated/java/app/tokenring/Main.java index 5192a41440..bd57c9a3a0 100644 --- a/examples/deprecated/java/app/tokenring/Main.java +++ b/examples/deprecated/java/app/tokenring/Main.java @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2016-2022. 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. */ @@ -16,12 +16,12 @@ class Main { public static void main(String[] args) { Msg.init(args); - + String platform = "../platforms/small_platform.xml"; - if(args.length >= 1) + if(args.length >= 1) platform = args[0]; Msg.createEnvironment(platform); - + Host[] hosts = Host.all(); for (int rank = 0; rank < hosts.length; rank++) { Process proc = new RelayRunner(hosts[rank], Integer.toString(rank), null);