diff --git a/Aux/EventBuilder.cpp b/Aux/EventBuilder.cpp index 79e1624..e2396dc 100644 --- a/Aux/EventBuilder.cpp +++ b/Aux/EventBuilder.cpp @@ -346,7 +346,7 @@ int main(int argc, char **argv) { hasEvent = false; } - printf("hit Porcessed %u/%u....%.2f%%\n\033[A\r", hitProcessed, totHitCount, hitProcessed*100./totHitCount); + if( hitProcessed % 10000 == 0 ) printf("hit Porcessed %u/%u hit....%.2f%%\n\033[A\r", hitProcessed, totHitCount, hitProcessed*100./totHitCount); ///===================== find the next first timestamp t0 = -1; diff --git a/Aux/fsuReader.h b/Aux/fsuReader.h index 9b0b505..89e6085 100644 --- a/Aux/fsuReader.h +++ b/Aux/fsuReader.h @@ -354,7 +354,7 @@ inline void FSUReader::ScanNumBlock(int verbose, uShort saveData){ blockPos.push_back(filePos); blockTimeStamp.push_back(data->aggTime); blockID ++; - if(verbose) printf("%u, %.2f%% %u/%lu\n\033[A\r", blockID, filePos*100./inFileSize, filePos, inFileSize); + if(verbose && blockID % 10000 == 0) printf("%u, %.2f%% %u/%lu\n\033[A\r", blockID, filePos*100./inFileSize, filePos, inFileSize); } totNumBlock = blockID; @@ -417,7 +417,7 @@ inline std::string FSUReader::SaveHit2NewFile(std::string saveFolder){ for( ulong i = 0; i < hitCount; i++){ - printf("Saving %lu/%lu (%.2f%%)\n\033[A\r", i, hitCount, i*100./hitCount); + if( i% 10000 == 0 ) printf("Saving %lu/%lu Hit (%.2f%%)\n\033[A\r", i, hitCount, i*100./hitCount); fwrite( &(hit[i].sn), 2, 1, outFile); fwrite( &(hit[i].ch), 1, 1, outFile); diff --git a/Aux/fsutsReader.h b/Aux/fsutsReader.h index ec57531..6ca05cf 100644 --- a/Aux/fsutsReader.h +++ b/Aux/fsutsReader.h @@ -206,7 +206,7 @@ inline void FSUTSReader::ScanFile(int verbose){ if(verbose > 1 ) printf("hitIndex : %u, Pos : %u - %u\n" , hitIndex, hitStartPos[hitIndex], hitStartPos[hitIndex+1]); - if(verbose) printf(" %u, %.2f%% %u/%lu\n\033[A\r", hitIndex, filePos*100./inFileSize, filePos, inFileSize); + if(verbose) printf(" %u, %.2f%% %u/%lu byte \n\033[A\r", hitIndex, filePos*100./inFileSize, filePos, inFileSize); } hitCount = hitIndex + 1;