Changeset 1739


Ignore:
Timestamp:
Jul 17, 2010, 9:02:15 PM (11 years ago)
Author:
Sven Rech
Message:

small quadratic sieve fix

File:
1 edited

Legend:

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

    r1737 r1739  
    586586                //Calculate time left:
    587587                msleft = estimatedTotalTime - estimatedElapsedTime;
    588                 /*GuiLogMessage("Total: " + new TimeSpan(0, 0, 0, 0, (int)estimatedTotalTime), NotificationLevel.Info);
    589                 GuiLogMessage("Elapsed: " + new TimeSpan(0, 0, 0, 0, (int)estimatedElapsedTime), NotificationLevel.Info);*/
    590588            }           
    591589           
     
    597595                timeLeft_message = showTimeSpan(ts) + " left";
    598596                endtime_message = "" + DateTime.Now.AddMilliseconds((long)msleft);
     597            }
     598
     599            if (globalPerformance == 0 || double.IsInfinity(msleft))
     600            {
     601                timeLeft_message = "?";
     602                endtime_message = "?";
    599603            }
    600604
Note: See TracChangeset for help on using the changeset viewer.