]> git.donarmstrong.com Git - mothur.git/blobdiff - setcurrentcommand.cpp
added binary file operations to mothurout class. added comment to sequence class...
[mothur.git] / setcurrentcommand.cpp
index 9d59696ba2f47157dd059c066af108d6bb76e731..98ae223818bd67b290dfbdf0450fa2a33b9b49b2 100644 (file)
@@ -417,10 +417,9 @@ SetCurrentCommand::SetCurrentCommand(string option)  {
                        else if (summaryfile == "not found") {  summaryfile = "";  }
                        if (summaryfile != "") { m->setSummaryFile(summaryfile); }
 
-                       
-                       processors = validParameter.validFile(parameters, "processors", false);
-                       if (processors == "not found") {  processors = "1";  }  
-                       if (processors != "") { m->setProcessors(processors); }
+                       string temp = validParameter.validFile(parameters, "processors", false);
+                       if (temp == "not found"){       temp = m->getProcessors();      }
+                       m->setProcessors(temp);
                        
                        clearTypes = validParameter.validFile(parameters, "clear", false);                      
                        if (clearTypes == "not found") { clearTypes = ""; }