Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
dead stores--
[simgrid.git] / examples / java / trace / pingpong / Sender.java
index 5fe2760..256a4b8 100644 (file)
@@ -29,7 +29,7 @@ public class Sender extends Process {
 
     int hostCount = args.length;
     Msg.info("host count: " + hostCount);
-    String mailboxes[] = new String[hostCount]; 
+    String[] mailboxes = new String[hostCount]; 
     double time;
     double computeDuration = 0;
     PingPongTask ping;
@@ -46,7 +46,7 @@ public class Sender extends Process {
       ping.send(mailboxes[pos]);
 
       Trace.hostPushState (getHost().getName(), PM_STATE, "waitingPong");
-      PingPongTask pong = (PingPongTask)Task.receive(getHost().getName());
+      Task.receive(getHost().getName());
       double timeGot = Msg.getClock();
       double timeSent = ping.getTime();
       double communicationTime;