]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.cpp
pat's edits from 1/26/2010
[mothur.git] / mothur.cpp
index 7fd5d1e48fc25bee4af0aefa7213814695489cf2..ab4fea0e09482b3c8c988ade3e244fa4c8504750 100644 (file)
@@ -20,11 +20,11 @@ int main(int argc, char *argv[]){
        try {
                
                //remove old logfile
-               string log = "mothur.logFile";
-               remove(log.c_str());
+//             string log = "mothur.logFile";
+//             remove(log.c_str());
                
                time_t ltime = time(NULL); /* calendar time */  
-               string logFileName = "mothur." + toString(asctime( localtime(&ltime) )) + ".logfile";
+               string logFileName = "mothur." + toString(ltime) + ".logfile";
                
                //version
                #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
@@ -110,7 +110,7 @@ int main(int argc, char *argv[]){
        
                delete mothur;
                
-               rename(log.c_str(), logFileName.c_str()); //logfile with timestamp
+//             rename(log.c_str(), logFileName.c_str()); //logfile with timestamp
                
                return 0;
        }