Changeset 1987


Ignore:
Timestamp:
Oct 18, 2010, 5:58:10 PM (11 years ago)
Author:
kohnen
Message:

little bugfix

File:
1 edited

Legend:

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

    r1985 r1987  
    336336                long allseconds = seconds + 60 * minutes + 60 * 60 * hours + 24 * 60 * 60 * days;
    337337                if (allseconds == 0) allseconds = 1;
     338
     339                if (allseconds == 0)
     340                    allseconds = 1;
     341
    338342                long keysPerSec = sum / allseconds;
    339343
    340344                long keystodo = (size - sum);
     345
     346               
     347                if (keysPerSec == 0)
     348                    keysPerSec = 1;
    341349
    342350                long secstodo = keystodo / keysPerSec;
Note: See TracChangeset for help on using the changeset viewer.