Browse Source

Fixed maximum / minimum response times for mmbshpmgmt attack

leonboeck 5 years ago
parent
commit
4b1683e433
1 changed files with 2 additions and 1 deletions
  1. 2 1
      code/Attack/MembersMgmtCommAttack.py

+ 2 - 1
code/Attack/MembersMgmtCommAttack.py

@@ -362,7 +362,8 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
                         # local communication
                         dist = Lea.fromSeq(avg_delay_local)
                     delay = 0
-                    while delay < 1:
+                    
+                 while delay < 50 or (float(delay)*0.000001 > 5):
                         delay = dist.random()
                     respns_msg.time = req_msg.time + float(delay) * 0.000001