Ignore:
Timestamp:
Feb 16, 2011, 10:34:04 AM (11 years ago)
Author:
nolte
Message:

added thousands separator for high values in Statistic Information

File:
1 edited

Legend:

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

    r2702 r2703  
    13611361                var timenow = DateTime.UtcNow;
    13621362
    1363                 var diff = (BigInteger) timenow.Subtract(memTime).TotalSeconds;
    1364                 if(diff > 0)
    1365                 {
    1366                    ((QuickWatch) QuickWatchPresentation).StatisticsPresentation.SetCurrentRate = (keysnow - memKeys) /
    1367                                                                                               ((BigInteger)timenow.Subtract(memTime).TotalSeconds);
     1363                var difftime = (BigInteger) timenow.Subtract(memTime).TotalSeconds;
     1364                var diffkeys = keysnow - memKeys;
     1365
     1366                if ((difftime > 0) && (diffkeys > 0))
     1367                {
     1368                   ((QuickWatch) QuickWatchPresentation).StatisticsPresentation.SetCurrentRate = diffkeys / difftime;
    13681369                }
    13691370                memKeys = keysnow;
Note: See TracChangeset for help on using the changeset viewer.