Explorar el Código

Fixed get_inter_arrival_time trying to access the interface with an index instead of the timestamp-tuple

Stefan Schmidt hace 6 años
padre
commit
7fac464d08
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      code/Attack/BaseAttack.py

+ 1 - 1
code/Attack/BaseAttack.py

@@ -487,7 +487,7 @@ class BaseAttack(metaclass=ABCMeta):
         inter_arrival_times = []
         prvsPktTime = 0
         for index, pkt in enumerate(packets):
-            timestamp = pkt[1][0] + pkt[1][1]/10**6
+            timestamp = pkt[2][0] + pkt[2][1]/10**6
 
             if index == 0:
                 prvsPktTime = timestamp