Changeset 14074 for branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs
- Timestamp:
- 07/14/16 22:23:38 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs
r14061 r14074 24 24 allPeers = new ConcurrentDictionary<PeerInfo, DateTime>(); 25 25 26 timer = new Timer(1000 ); //each minute26 timer = new Timer(1000 * 60 * 2); //each minute 27 27 timer.Elapsed += CleanUpContactTable; 28 28 timer.Start(); … … 87 87 DateTime tmp; 88 88 if (allPeers.TryGetValue(pi, out tmp)) { 89 if (tmp.AddMinutes( 1) < deadline) {89 if (tmp.AddMinutes(2) < deadline) { 90 90 itemsToDelete.Add(pi); 91 91 }
Note: See TracChangeset
for help on using the changeset viewer.