3
0
Преглед на файлове

Fixed path to the CAIDA TTL distribution data in MembersMgmtCommAttack.py

Stefan Schmidt преди 5 години
родител
ревизия
0e9e656560
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      code/Attack/MembersMgmtCommAttack.py

+ 2 - 2
code/Attack/MembersMgmtCommAttack.py

@@ -385,7 +385,7 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
                 :return: returns a dict with the IPs as keys and dicts for their TTL distribution as values
                 """
                 ip_based_distrib = {}
-                with open("resources/CaidaTTL_perIP.csv", "r") as file:
+                with open(Util.RESOURCE_DIR + "CaidaTTL_perIP.csv", "r") as file:
                     # every line consists of: IP, TTL, Frequency
                     next(file)  # skip CSV header line
                     for line in file:
@@ -404,7 +404,7 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
                 """
 
                 total_ttl_distrib = {}
-                with open("resources/CaidaTTL_total.csv", "r") as file:
+                with open(Util.RESOURCE_DIR + "CaidaTTL_total.csv", "r") as file:
                     # every line consists of: TTL, Frequency, Fraction
                     next(file)  # skip CSV header line
                     for line in file: