X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chopseqscommand.h;h=c9a4962c96fe9e548b50db1e4c0d6f63d1cdfff4;hb=67ea6ccd74dbd64828d31b952808255f206364ff;hp=cd2b2fe9640eb7e359cdc068d98552611f5b2d13;hpb=deba0af0ccdcb6005ed5b2b82649b137c63fbdf7;p=mothur.git diff --git a/chopseqscommand.h b/chopseqscommand.h index cd2b2fe..c9a4962 100644 --- a/chopseqscommand.h +++ b/chopseqscommand.h @@ -60,7 +60,7 @@ struct chopData { string outFasta, outAccnos, keep; unsigned long long start; unsigned long long end; - int numbases; + int numbases, count; bool countGaps, Short, wroteAccnos; MothurOut* m; string namefile; @@ -108,7 +108,7 @@ static DWORD WINAPI MyChopThreadFunction(LPVOID lpParam){ bool done = false; bool wroteAccnos = false; - int count = 0; + pDataArray->count = 0; for(int i = 0; i < pDataArray->end; i++){ //end is the number of sequences to process @@ -238,14 +238,14 @@ static DWORD WINAPI MyChopThreadFunction(LPVOID lpParam){ outAcc << seq.getName() << endl; pDataArray->wroteAccnos = true; } - count++; + pDataArray->count++; } //report progress - if((count) % 1000 == 0){ pDataArray->m->mothurOut(toString(count)); pDataArray->m->mothurOutEndLine(); } + if((pDataArray->count) % 1000 == 0){ pDataArray->m->mothurOut(toString(pDataArray->count)); pDataArray->m->mothurOutEndLine(); } } //report progress - if((count) % 1000 != 0){ pDataArray->m->mothurOut(toString(count)); pDataArray->m->mothurOutEndLine(); } + if((pDataArray->count) % 1000 != 0){ pDataArray->m->mothurOut(toString(pDataArray->count)); pDataArray->m->mothurOutEndLine(); } in.close();