Skip to content

Commit

Permalink
fixing bug ramp in distributed mode
Browse files Browse the repository at this point in the history
change args with kwargs variable for slave master report ramp
  • Loading branch information
erlanggakrisnamukti committed Oct 5, 2017
1 parent 588aa0f commit a9eb77d
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 a9eb77d

Please sign in to comment.