Changeset 14253 for branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs
- Timestamp:
- 08/12/16 13:30:41 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs
r14252 r14253 58 58 } 59 59 60 private List<PeerInfo> ChoosePeersForMessaging( refList<PeerInfo> allPeers) {60 private List<PeerInfo> ChoosePeersForMessaging(List<PeerInfo> allPeers) { 61 61 Shuffle<PeerInfo>(allPeers); 62 62 int toTake = Convert.ToInt32(allPeers.Count * communicationRate) + 1; … … 64 64 toTake = 1; 65 65 } 66 return allPeers.Take(toTake).ToList(); ;66 return allPeers.Take(toTake).ToList(); 67 67 } 68 68 … … 89 89 } 90 90 } 91 cachedPeerList = ChoosePeersForMessaging( refallPeers);91 cachedPeerList = ChoosePeersForMessaging(allPeers); 92 92 } 93 93 catch { } //nothing to do
Note: See TracChangeset
for help on using the changeset viewer.