Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/09/16 11:37:51 (8 years ago)
Author:
thasling
Message:

increased frequences of all timers, threads, etc... for testing purposes

File:
1 edited

Legend:

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

    r13887 r13888  
    2525            allPeers = new ConcurrentDictionary<PeerInfo, DateTime>();
    2626
    27             timer = new Timer(1000 * 60 * 60); //each hour
     27            timer = new Timer(1000); //each hour
    2828            timer.Elapsed += CleanUpContactTable;
    2929            timer.Start();
     
    104104                if (allPeers.TryGetValue(pi, out tmp))
    105105                {
    106                     if (tmp.AddHours(1f) < deadline)
     106                    //if (tmp.AddHours(1f) < deadline)
     107                    if (tmp.AddMinutes(1) < deadline)  //TODO
    107108                    {
    108109                        //if (tmp < deadline.AddHours(1f)) {
Note: See TracChangeset for help on using the changeset viewer.