You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2013/02/05 05:01:07 UTC

svn commit: r1442464 - /hama/trunk/core/src/main/java/org/apache/hama/bsp/PartitioningRunner.java

Author: edwardyoon
Date: Tue Feb  5 04:01:06 2013
New Revision: 1442464

URL: http://svn.apache.org/viewvc?rev=1442464&view=rev
Log:
minor change.

Modified:
    hama/trunk/core/src/main/java/org/apache/hama/bsp/PartitioningRunner.java

Modified: hama/trunk/core/src/main/java/org/apache/hama/bsp/PartitioningRunner.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/main/java/org/apache/hama/bsp/PartitioningRunner.java?rev=1442464&r1=1442463&r2=1442464&view=diff
==============================================================================
--- hama/trunk/core/src/main/java/org/apache/hama/bsp/PartitioningRunner.java (original)
+++ hama/trunk/core/src/main/java/org/apache/hama/bsp/PartitioningRunner.java Tue Feb  5 04:01:06 2013
@@ -182,11 +182,10 @@ public class PartitioningRunner extends
     for (int j = 0; j < status.length; j++) {
       int partitionID = Integer.parseInt(status[j].getPath().getName()
           .split("[-]")[1]);
-      System.out.println(desiredNum + ", " + peer.getNumPeers());
       int denom = desiredNum / peer.getNumPeers();
       int assignedID = partitionID;
       if(denom > 1) {
-        assignedID = partitionID / (desiredNum / peer.getNumPeers());
+        assignedID = partitionID / denom;
       }
       
       if (assignedID == peer.getNumPeers())