- Timestamp:
- 07/02/16 15:23:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs
r13943 r13982 24 24 allPeers = new ConcurrentDictionary<PeerInfo, DateTime>(); 25 25 26 timer = new Timer(1000); //each hour26 timer = new Timer(1000); //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.AddHours(1f) < deadline) 90 if (tmp.AddMinutes(1) < deadline) //TODO 91 { 92 //if (tmp < deadline.AddHours(1f)) { 89 if (tmp.AddMinutes(1) < deadline) { 93 90 itemsToDelete.Add(pi); 94 91 }
Note: See TracChangeset
for help on using the changeset viewer.