瀏覽代碼

Remove debug print statements

Because these essential print statements would have had to be readded
again after almost every commit, they knowingly stayed in until the
end of development.
dustin.born 7 年之前
父節點
當前提交
1d22feb5f9
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      code/Attack/MembersMgmtCommAttack.py

+ 0 - 7
code/Attack/MembersMgmtCommAttack.py

@@ -357,7 +357,6 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
             ids = sorted(bot_configs.keys())
             for pos,bot in enumerate(ids):
                 bot_type = bot_configs[bot]["Type"]
-                # print(bot_type)
                 if(bot_type == "local"): # Set fix TTL for local Bots
                     bot_configs[bot]["TTL"] = 128
                     # Set TTL based on TTL distribution of IP address
@@ -565,7 +564,6 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
 
         # retrieve the mapping information
         mapped_ids, packet_start_idx, packet_end_idx = comm_interval["IDs"], comm_interval["Start"], comm_interval["End"]
-        # print(mapped_ids)
         while len(mapped_ids) > number_init_bots:
             rm_idx = randrange(0, len(mapped_ids))
             del mapped_ids[rm_idx]
@@ -580,11 +578,6 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
         # use the previously detetermined roles to assign the locality of all IDs
         local_ids, external_ids = comm_proc.det_ext_and_local_ids()
 
-        # print start and end time of mapped interval
-        # print(abstract_packets[packet_start_idx]["Time"])
-        # print(abstract_packets[packet_end_idx]["Time"])
-        # print(mapped_ids)
-
         # determine number of reused local and external IPs
         reuse_percent_total = self.get_param_value(Param.IP_REUSE_TOTAL)
         reuse_percent_external = self.get_param_value(Param.IP_REUSE_EXTERNAL)