X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Client%20Applications%2Fconverti2%2Fconverti2.cpp;h=d534d81c8dc9433e05453c7b3de38c05a97935d2;hb=be9db72731412fad58246851d4f345c01392351c;hp=3ad8c09a75fb0dbc6e3dfe4c873621f3fa2b8ba2;hpb=b3e14a93645a48910b1c608c9bbf276479786f95;p=freerainbowtables diff --git a/Client Applications/converti2/converti2.cpp b/Client Applications/converti2/converti2.cpp index 3ad8c09..d534d81 100644 --- a/Client Applications/converti2/converti2.cpp +++ b/Client Applications/converti2/converti2.cpp @@ -327,17 +327,19 @@ void ConvertRainbowTable(string sPathName, string sResultFileName, unsigned int unsigned int nChains = nAllocatedSize / sizeof(RainbowChain); uint64 curPrefix = 0, prefixStart = 0; vector indexes; - while(reader->GetChainsLeft() > 0) { + unsigned int chainsLeft; + while((chainsLeft = reader->GetChainsLeft()) > 0) { /* if (ftell(file) == nFileLen) break;*/ + printf("%u chains left to read\n", chainsLeft); int nReadThisRound; clock_t t1 = clock(); printf("reading...\n"); #ifdef _MEMORYDEBUG printf("Grabbing %i chains from file\n", nChains); #endif - reader->ReadChains(nChains, pChain); + reader->ReadChains(nChains, pChain); #ifdef _MEMORYDEBUG printf("Recieved %i chains from file\n", nChains); #endif