Changeset 1629


Ignore:
Timestamp:
Jun 13, 2010, 10:00:12 PM (11 years ago)
Author:
Sven Rech
Message:

some small qs changes

Location:
trunk/CrypPlugins/QuadraticSieve
Files:
2 edited

Legend:

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

    r1628 r1629  
    476476                head = 0;
    477477
    478             SetOurID();
     478            //SetOurID();
    479479
    480480            //store our name:
  • trunk/CrypPlugins/QuadraticSieve/QuadraticSieve.cs

    r1628 r1629  
    555555                globalPerformance += peerToPeer.GetP2PPerformance();
    556556
    557             //Calculate the total time assuming that we can sieve 10 minutes with the same performance:
    558             double relationsCalculatableIn10Minutes = 1000 * 60 * 1 * globalPerformance;
    559             if (relationsCalculatableIn10Minutes <= max_relations)
    560             {
    561                 double p = ApproximatedPolynom(relationsCalculatableIn10Minutes / max_relations);
     557            //Calculate the total time assuming that we can sieve 1 minute with the same performance:
     558            double relationsCalculatableIn1Minute = 1000 * 60 * 1 * globalPerformance;
     559            if (relationsCalculatableIn1Minute <= max_relations)
     560            {
     561                double p = ApproximatedPolynom(relationsCalculatableIn1Minute / max_relations);
    562562                double estimatedTotalTime = 1000 * 60 * 1 / p;
    563563
     
    572572            }           
    573573           
    574             String timeLeft_message = "";
    575             String endtime_message = "";
     574            String timeLeft_message = "very soon";
     575            String endtime_message = "very soon";
    576576            if (msleft > 0 && !double.IsInfinity(msleft))
    577577            {
Note: See TracChangeset for help on using the changeset viewer.