@@ -545,11 +545,11 @@ _tstring generate_output_location(
545545 return outputFileName;
546546}
547547
548- void convert_file (ConvInfo info, fs::path inputName, fs::path output )
548+ void convert_file (ConvInfo info, fs::path inputName, _tstring outputName )
549549{
550- // std::cout << "Operating on: " << fs::absolute(inputName).string() << std::endl;
550+ // std::cout << "Operating on: " << fs::absolute(inputName).string() << std::endl;
551551
552- _tstring outputName = generate_output_location (info.origPath , fs::absolute (inputName).TSTRING_METHOD (), output.TSTRING_METHOD (), info.postfix , info.outputFormat , info.outputOption );
552+ // _tstring outputName = generate_output_location(info.origPath, fs::absolute(inputName).TSTRING_METHOD(), output.TSTRING_METHOD(), info.postfix, info.outputFormat, info.outputOption);
553553
554554 int _nrLevel = -1 ;
555555 if (info.convMode & CONV_NOISE)
@@ -1085,10 +1085,10 @@ int main(int argc, char** argv)
10851085 for (auto &fn : files_list)
10861086 {
10871087 ++numFilesProcessed;
1088- _tstring outputName = generate_output_location (convInfo.origPath , fs::absolute (fn).TSTRING_METHOD (), output.TSTRING_METHOD (), convInfo.postfix , convInfo.outputFormat , convInfo.outputOption );
1088+ _tstring outputName = generate_output_location (convInfo.origPath , fs::absolute (fn).TSTRING_METHOD (), output.TSTRING_METHOD (), convInfo.postfix , convInfo.outputFormat , convInfo.outputOption );
10891089 if (cmdResume.getValue () && fs::exists (outputName)){
10901090 if (log_level >= 1 ) {
1091- printf ( " Ignored %s\n " , fn.c_str ());
1091+ _tprintf ( _T ( " Skipped %s, existing output with --resume flag \n " ) , fn. TSTRING_METHOD () .c_str ());
10921092 }
10931093 numIgnored++;
10941094 continue ;
@@ -1116,7 +1116,7 @@ int main(int argc, char** argv)
11161116
11171117 try
11181118 {
1119- convert_file (convInfo, fn, output );
1119+ convert_file (convInfo, fn, outputName );
11201120 }
11211121 catch (const std::exception& e)
11221122 {
@@ -1186,16 +1186,15 @@ int main(int argc, char** argv)
11861186 {
11871187 double time_end = getsec ();
11881188
1189- double gflops_proc = (converter->flops .flop / (1000.0 *1000.0 *1000.0 )) / converter->flops .filter_sec ;
1189+ double gflops_proc = (converter->flops .flop / (1000.0 *1000.0 *1000.0 )) / converter->flops .filter_sec ? converter-> flops . filter_sec : 1 ;
11901190 double gflops_all = (converter->flops .flop / (1000.0 *1000.0 *1000.0 )) / (time_end - time_start);
11911191
1192- printf (" Finished processing %d files%s%.3fsecs total, filter: %.3fsecs ; %d files ignored, %d files skipped, %d files errored. [GFLOPS: %7 .2f, GFLOPS-Filter: %7 .2f]\n " ,
1192+ printf (" Finished processing %d files%s%.3fs total, filter: %.3fs ; %d files skipped, %d files errored. [GFLOPS: %.2f, GFLOPS-Filter: %.2f]\n " ,
11931193 numFilesProcessed,
11941194 (log_level >=2 ? " \n Took: " : " , took: " ),
11951195 (time_end - time_start),
11961196 converter->flops .filter_sec ,
1197- numIgnored,
1198- numSkipped,
1197+ numSkipped + numIgnored,
11991198 numErrors,
12001199 gflops_all,
12011200 gflops_proc
0 commit comments