Ignore:
Timestamp:
Jun 26, 2010, 5:48:36 PM (12 years ago)
Author:
Paul Lelgemann
Message:

o KeySearcher: improved visualization of local and distributed components

File:
1 edited

Legend:

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

    r1682 r1705  
    3535            var keysPerChunk = Math.Pow(2, keySearcherSettings.ChunkSize);
    3636            var keyPatternPool = new KeyPatternPool(keyPattern, new BigInteger(keysPerChunk));
    37            
    38             TotalAmountOfChunks.Content = keyPatternPool.Length;
     37
     38            if (keyPatternPool.Length > 9999999999)
     39            {
     40                TotalAmountOfChunks.Content = keyPatternPool.Length.ToString().Substring(0, 10) + "...";
     41            }
     42            else
     43            {
     44                TotalAmountOfChunks.Content = keyPatternPool.Length;
     45            }
     46
    3947            KeysPerChunk.Content = keysPerChunk;
     48            TestedBits.Content = Math.Ceiling(Math.Log((double) keyPatternPool.Length*keysPerChunk, 2));
    4049        }
    4150    }
Note: See TracChangeset for help on using the changeset viewer.