소스 검색

clean comments

aidmar.wainakh 6 년 전
부모
커밋
9d046618db
2개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 5
      code_boost/src/cxx/statistics.cpp
  2. 0 1
      code_boost/src/cxx/statistics_db.cpp

+ 3 - 5
code_boost/src/cxx/statistics.cpp

@@ -328,13 +328,13 @@ void statistics::assignMacAddress(std::string ipAddress, std::string macAddress)
  */
 void statistics::addIpStat_packetSent(std::string filePath, std::string ipAddressSender, std::string ipAddressReceiver, long bytesSent, std::chrono::microseconds timestamp) {
 
-    // Aidmar - Adding IP as a sender for first time
+    // Adding IP as a sender for first time
     if(ip_statistics[ipAddressSender].pkts_sent==0){  
         // Add the IP class
         ip_statistics[ipAddressSender].ip_class = getIPv4Class(ipAddressSender);
     }
     
-    // Aidmar - Adding IP as a receiver for first time
+    // Adding IP as a receiver for first time
     if(ip_statistics[ipAddressReceiver].pkts_received==0){
         // Add the IP class
         ip_statistics[ipAddressReceiver].ip_class = getIPv4Class(ipAddressReceiver);
@@ -343,13 +343,11 @@ void statistics::addIpStat_packetSent(std::string filePath, std::string ipAddres
     // Update stats for packet sender
     ip_statistics[ipAddressSender].kbytes_sent += (float(bytesSent) / 1024);
     ip_statistics[ipAddressSender].pkts_sent++;
-    // Aidmar
     ip_statistics[ipAddressSender].pkts_sent_timestamp.push_back(timestamp);
                 
     // Update stats for packet receiver
     ip_statistics[ipAddressReceiver].kbytes_received += (float(bytesSent) / 1024);
-    ip_statistics[ipAddressReceiver].pkts_received++;  
-     // Aidmar
+    ip_statistics[ipAddressReceiver].pkts_received++;
     ip_statistics[ipAddressReceiver].pkts_received_timestamp.push_back(timestamp);
 }
 

+ 0 - 1
code_boost/src/cxx/statistics_db.cpp

@@ -44,7 +44,6 @@ void statistics_db::writeStatisticsIP(std::unordered_map<std::string, entry_ipSt
             query.bind(3, (int) e.pkts_sent);
             query.bind(4, e.kbytes_received);
             query.bind(5, e.kbytes_sent);
-            // Aidmar
             query.bind(6, e.max_interval_pkt_rate);
             query.bind(7, e.min_interval_pkt_rate);
             query.bind(8, e.ip_class);