Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/02/16 15:23:57 (8 years ago)
Author:
thasling
Message:

#2615:
made minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs

    r13943 r13982  
    2424      allPeers = new ConcurrentDictionary<PeerInfo, DateTime>();
    2525
    26       timer = new Timer(1000); //each hour
     26      timer = new Timer(1000); //each minute
    2727      timer.Elapsed += CleanUpContactTable;
    2828      timer.Start();
     
    8787          DateTime tmp;
    8888          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) {
    9390              itemsToDelete.Add(pi);
    9491            }
Note: See TracChangeset for help on using the changeset viewer.