Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill a warning in java example: unused variable
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 14 Oct 2009 09:06:45 +0000 (09:06 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 14 Oct 2009 09:06:45 +0000 (09:06 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6763 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/java/comm_time/Slave.java

index cb7878b..6fc7828 100644 (file)
@@ -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();