From: mquinson Date: Wed, 14 Oct 2009 09:06:45 +0000 (+0000) Subject: Kill a warning in java example: unused variable X-Git-Tag: SVN~951 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/dac0071e0033a47de01436ca2783a3a991704245?ds=inline Kill a warning in java example: unused variable git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6763 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/java/comm_time/Slave.java b/examples/java/comm_time/Slave.java index cb7878be19..6fc7828801 100644 --- a/examples/java/comm_time/Slave.java +++ b/examples/java/comm_time/Slave.java @@ -19,7 +19,6 @@ public class Slave extends simgrid.msg.Process { while(true) { double time1 = Msg.getClock(); Task t = Task.get(0); - double time2 = Msg.getClock(); if (t instanceof FinalizeTask) { break; @@ -29,7 +28,8 @@ public class Slave extends simgrid.msg.Process { if(time1 < task.getTime()) time1 = task.getTime(); -/* Msg.info("Processing \"" + task.getName() + "\" " + getHost().getName() + +/* double time2 = Msg.getClock(); + Msg.info("Processing \"" + task.getName() + "\" " + getHost().getName() + " (Communication time : " + (time2 - time1) + ")"); */ task.execute();