hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hama Wiki] Update of "DevelopBSP" by thomasjungblut
Date Sun, 17 Jun 2012 11:08:46 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.

The "DevelopBSP" page has been changed by thomasjungblut:
http://wiki.apache.org/hama/DevelopBSP?action=diff&rev1=3&rev2=4

  	    // produces new random integers every second
  	    while (true) {
  		int newInt = random.nextInt();
+                 // just send to other not master peers
- 		peer.send(peer.getAllPeerNames()[Math.abs(newInt % peer.getNumPeers())],
+ 		peer.send(peer.getAllPeerNames()[Math.abs(newInt % (peer.getNumPeers()-1))+1],
  			new IntWritable(newInt));
  		System.out.println("Sending " + newInt);
  		peer.sync();

Mime
View raw message