X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=myseqdist.cpp;h=b43af1cfeb7b86dae7e17646f983f1cae1c51287;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=78255d8f73d894c7cb4032d925b684843094bee7;hpb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;p=mothur.git diff --git a/myseqdist.cpp b/myseqdist.cpp index 78255d8..b43af1c 100644 --- a/myseqdist.cpp +++ b/myseqdist.cpp @@ -159,7 +159,7 @@ int correctDist::createProcess(string distanceFileName){ process++; } else if(pid == 0){ - driver(start[process], end[process], distanceFileName + toString(getpid()) + ".temp"); + driver(start[process], end[process], distanceFileName + m->mothurGetpid(process) + ".temp"); exit(0); } else{ @@ -219,11 +219,11 @@ int correctDist::driver(int start, int end, string distFileName){ } distFile << endl; - if(i % 100 == 0){ m->mothurOut(toString(i) + "\t" + toString(time(NULL) - startTime)); m->mothurOutEndLine(); } + if(i % 100 == 0){ m->mothurOutJustToScreen(toString(i) + "\t" + toString(time(NULL) - startTime)+"\n"); } } distFile.close(); - if((end-1) % 100 != 0){ m->mothurOut(toString(end-1) + "\t" + toString(time(NULL) - startTime)); m->mothurOutEndLine(); } + if((end-1) % 100 != 0){ m->mothurOutJustToScreen(toString(end-1) + "\t" + toString(time(NULL) - startTime)+"\n"); } m->mothurOut("Done.\n"); return 0;