hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1442464 - /hama/trunk/core/src/main/java/org/apache/hama/bsp/PartitioningRunner.java
Date Tue, 05 Feb 2013 04:01:07 GMT
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())



Mime
View raw message