Ignore:
Timestamp:
Jan 21, 2011, 6:32:48 PM (11 years ago)
Author:
schwittmann
Message:

Shutdown external client server gracefully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/ExternalClient/Cryptool.cpp

    r2259 r2411  
    313313        unsigned long timeDiffMicroSec = (now.tv_sec - lastSubbatchCompleted.tv_sec)*1000000 + (now.tv_usec - lastSubbatchCompleted.tv_usec);
    314314        lastSubbatchCompleted = now;
    315         printf("% .2f%% done. %'u keys/sec\n", ((i+1)*subbatch)/(float)size*100, (unsigned int)(subbatch/((float)timeDiffMicroSec/1000000)));
     315        float keysPerSecond = subbatch/((float)timeDiffMicroSec/1000000);
     316        printf("% .2f%% done. %'u keys/sec %u seconds remaining\n", ((i+1)*subbatch)/(float)size*100, (unsigned int)keysPerSecond,
     317                (unsigned int)((float)(size-(subbatch*(i+1)))/keysPerSecond));
    316318    }
    317319
Note: See TracChangeset for help on using the changeset viewer.