Skip to content

Commit

Permalink
Merge pull request locustio#6 from erlanggakrisnamukti/angga/fb_ramp_…
Browse files Browse the repository at this point in the history
…in_distributed_mode

fixing bug ramp in distributed mode
  • Loading branch information
pancaprima authored Oct 6, 2017
2 parents e16676e + a9eb77d commit 62cd70d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/ramping.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def on_request_success_ramping(**kwargs):
for i in range(len(response_times) - int(math.ceil(rps*PERCENTILE_TIME_WINDOW))):
response_times.popleft()

def on_report_to_master_ramping(_, data):
def on_report_to_master_ramping(client_id, data):
global response_times
data["current_responses"] = response_times
response_times = []

def on_slave_report_ramping(_, data):
def on_slave_report_ramping(client_id, data):
if "current_responses" in data:
response_times.append(data["current_responses"])

Expand Down

0 comments on commit 62cd70d

Please sign in to comment.