Ignore:
Timestamp:
Oct 16, 2009, 9:40:44 PM (12 years ago)
Author:
Sven Rech
Message:

fixed KeySearcher Progress

File:
1 edited

Legend:

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

    r733 r736  
    136136        public int initKeyIteration(string key)
    137137        {
    138             int counter = 0;
     138            int counter = 1;
    139139            this.key = key;
    140140            int pcount = 0;
     
    146146                    Wildcard wc = new Wildcard(pattern.Substring(pcount, pattern.IndexOf(']', pcount) + 1 - pcount));
    147147                    wildcardList.Add(wc);
    148                     counter += wc.Size();
     148                    counter *= wc.Size();
    149149                }
    150150
     
    320320                    }
    321321
    322                     counter++;
     322                    counter++;                   
    323323                    ProgressChanged(counter, size);
    324324                } while (Pattern.nextKey() && !stop);
Note: See TracChangeset for help on using the changeset viewer.