Browse Source

Print 100% completion message when statistics db generation is done

Stefan Schmidt 6 years ago
parent
commit
83dd88cc71
1 changed files with 3 additions and 1 deletions
  1. 3 1
      code_boost/src/cxx/pcap_processor.cpp

+ 3 - 1
code_boost/src/cxx/pcap_processor.cpp

@@ -178,7 +178,9 @@ void pcap_processor::collect_statistics() {
             }
         }
 
-        std::cout << "\n";
+        std::cout << "\rInspected packets: ";
+        std::cout << "100.0% (" << totalPackets << "/" << totalPackets << ")" << std::endl;
+
         // Save timestamp of last packet into statistics
         stats.setTimestampLastPacket(currentPktTimestamp);