Changeset 2613


Ignore:
Timestamp:
Feb 7, 2011, 12:53:18 PM (11 years ago)
Author:
nolte
Message:

Changed information %rate.
Further changes coming soon...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/Presentation/Controls/StatisticsPresentation.xaml.cs

    r2612 r2613  
    184184                    if (totalBlocks != 0)
    185185                    {
    186                         percent = Math.Round((value/(double) totalBlocks)*10000)/100;
     186                        percent = Math.Round((value/(double) totalBlocks)*Math.Pow(10, totalKeys.ToString().Length)) / Math.Pow(10, totalKeys.ToString().Length-2);
    187187                    }
    188188                    else
     
    194194                Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
    195195                {
    196                     PercentsComplete.Content = percent + " %";
     196                     PercentsComplete.Content = string.Format("{0:g} %", percent);
    197197                }, null);
    198198            }
Note: See TracChangeset for help on using the changeset viewer.