--- misc/mysql_splitter/splitter.cpp 2011/05/12 16:33:18 1463 +++ misc/mysql_splitter/splitter.cpp 2011/05/12 19:38:56 1464 @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -91,7 +92,7 @@ } - FILE* in = fopen( inputfile.c_str(), "r" ); + FILE* in = fopen64( inputfile.c_str(), "r" ); FILE* out = NULL; //ifstream in( inputfile.c_str() ); //ofstream out; @@ -100,6 +101,7 @@ if ( in == NULL ) { cout << "Could not open " << argv[1] << endl; + perror(""); return 2; } @@ -171,7 +173,9 @@ time_t end = time(NULL); - cout << "Elapsed " << (end-start) << " seconds" << endl; + + time_t elapsed = end-start; + cout << setfill('0') << "Elapsed time " << elapsed/60 << ":" << setw(2) << elapsed%60 << endl; fclose(in); }