From: Jonathan Rouzaud-Cornabas Date: Thu, 30 Aug 2012 13:14:39 +0000 (+0200) Subject: Fix the masterslave example X-Git-Tag: v3_9_90~569^2~19^2~8^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4df273f15273f959fc9e6ed69d2bf5e607ec9bf7?hp=-c Fix the masterslave example --- 4df273f15273f959fc9e6ed69d2bf5e607ec9bf7 diff --git a/examples/cloud/Master.java b/examples/cloud/Master.java index 2a46bc5266..1551521c1a 100644 --- a/examples/cloud/Master.java +++ b/examples/cloud/Master.java @@ -30,7 +30,7 @@ public class Master extends Process { for (int i = 0; i < slavesCount; i++) { Slave slave = new Slave(hosts[i],i); slave.start(); - VM vm = new VM(hosts[i],1); + VM vm = new VM(hosts[i],hosts[i]+"_"+i,1); vm.bind(slave); vms.add(vm); } @@ -93,4 +93,4 @@ public class Master extends Process { task.send("slave_" + i); } } -} \ No newline at end of file +}