Ignore:
Timestamp:
Jun 19, 2010, 12:23:08 PM (12 years ago)
Author:
Sven Rech
Message:

quadratic sieve changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/QuadraticSieve/PeerToPeer.cs

    r1676 r1678  
    226226                    }
    227227
    228                     //updates all peer performances which have last been checked more than 2 minutes ago and check if they are still alive:
    229                     while (peerPerformances.Count != 0 && peerPerformances.Peek().lastChecked.CompareTo(DateTime.Now.Subtract(new TimeSpan(0, 2, 0))) < 0)
     228                    //updates all peer performances which have last been checked more than 1 minutes and 20 seconds ago and check if they are still alive:
     229                    while (peerPerformances.Count != 0 && peerPerformances.Peek().lastChecked.CompareTo(DateTime.Now.Subtract(new TimeSpan(0, 1, 20))) < 0)
    230230                    {
    231231                        var e = peerPerformances.Dequeue();
     
    247247                        {
    248248                            activePeers.Remove(e.peerID);
     249                            UpdateActivePeerInformation();
    249250                        }                       
    250251                    }
Note: See TracChangeset for help on using the changeset viewer.