X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/be3155e24d0c71e2bbd31dd282cfd49bff7290fa..459db2415fe292ebf73c46748c88df0ed68cd345:/examples/java/app/pingpong/Receiver.java diff --git a/examples/java/app/pingpong/Receiver.java b/examples/java/app/pingpong/Receiver.java index 4e59a48674..80d832e156 100644 --- a/examples/java/app/pingpong/Receiver.java +++ b/examples/java/app/pingpong/Receiver.java @@ -13,8 +13,7 @@ import org.simgrid.msg.NativeException; import org.simgrid.msg.HostNotFoundException; public class Receiver extends Process { - static final double COMM_SIZE_LAT = 1; - static final double COMM_SIZE_BW = 100000000; + private static final double COMM_SIZE_BW = 100000000; public Receiver(String hostname, String name, String[]args) throws HostNotFoundException, NativeException{ super(hostname,name,args); } @@ -32,7 +31,7 @@ public class Receiver extends Process { Msg.info("Got at time "+ timeGot); Msg.info("Was sent at time "+timeSent); - time=timeSent; + time = timeSent; double communicationTime = timeGot - time; Msg.info("Communication time : " + communicationTime);