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

Location:
branches/thasling/DistributedGA
Files:
3 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)) {
  • branches/thasling/DistributedGA/DistributedGA.Core.Host/Program.cs

    r13887 r13888  
    3131
    3232                int i = 0;
    33                 while (i < 10)
     33                while (true)
    3434                {
    3535                    i++;
    36                     Thread.Sleep(1000 * 10);
     36                    Thread.Sleep(1000);
    3737                    var message = CreateMessage(pi, i);
    3838                    Console.WriteLine("Publishing messages...");
  • branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs

    r13887 r13888  
    2828            myself = source;
    2929            client.RegisterPeer(source);
    30             timer = new Timer(1000 * 60 * 5); //each 5 minutes
     30            timer = new Timer(1000 ); //each 5 minutes
    3131            timer.Elapsed += SendHeartbeatToServer;
    3232            timer.Start();
Note: See TracChangeset for help on using the changeset viewer.