hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1446446 - /hama/trunk/examples/src/main/java/org/apache/hama/examples/util/SymmetricMatrixGen.java
Date Fri, 15 Feb 2013 05:20:17 GMT
Author: edwardyoon
Date: Fri Feb 15 05:20:17 2013
New Revision: 1446446

URL: http://svn.apache.org/r1446446
Log:
Fix minor bug directly.

Modified:
    hama/trunk/examples/src/main/java/org/apache/hama/examples/util/SymmetricMatrixGen.java

Modified: hama/trunk/examples/src/main/java/org/apache/hama/examples/util/SymmetricMatrixGen.java
URL: http://svn.apache.org/viewvc/hama/trunk/examples/src/main/java/org/apache/hama/examples/util/SymmetricMatrixGen.java?rev=1446446&r1=1446445&r2=1446446&view=diff
==============================================================================
--- hama/trunk/examples/src/main/java/org/apache/hama/examples/util/SymmetricMatrixGen.java
(original)
+++ hama/trunk/examples/src/main/java/org/apache/hama/examples/util/SymmetricMatrixGen.java
Fri Feb 15 05:20:17 2013
@@ -83,12 +83,12 @@ public class SymmetricMatrixGen {
           if (nonZero && !edges.contains(j) && i != j) {
             edges.add(j);
             
-            // TODO please refactor this.
+            // allocate remainders to the last task
             int peerIndex = j / interval;
             if(peerIndex == peer.getNumPeers())
               peerIndex = peerIndex - 1;
             
-            peer.send(peer.getPeerName(j / interval), new Text(j + "," + i));
+            peer.send(peer.getPeerName(peerIndex), new Text(j + "," + i));
           }
         }
 



Mime
View raw message