X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracweightedcommand.cpp;h=fb365776a6adccb86b0c7f968de55333431e4c81;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=1c146ac4d1b1168093cc6df20a8d37a930e1d56b;hpb=cbbf2f185fc7289910bb69421095c1de024c5225;p=mothur.git diff --git a/unifracweightedcommand.cpp b/unifracweightedcommand.cpp index 1c146ac..fb36577 100644 --- a/unifracweightedcommand.cpp +++ b/unifracweightedcommand.cpp @@ -778,7 +778,7 @@ int UnifracWeightedCommand::createProcesses(Tree* t, vector< vector > na //pass numSeqs to parent ofstream out; - string tempFile = outputDir + toString(getpid()) + ".weightedcommand.results.temp"; + string tempFile = outputDir + m->mothurGetpid(process) + ".weightedcommand.results.temp"; m->openOutputFile(tempFile, out); for (int i = lines[process].start; i < (lines[process].start + lines[process].num); i++) { out << scores[i][(scores[i].size()-1)] << '\t'; } out << endl; out.close();