From a9eb77d68991671b333fc305bba7d655a1e622fb Mon Sep 17 00:00:00 2001 From: erlanggakrisnamukti Date: Thu, 5 Oct 2017 21:39:59 +0700 Subject: [PATCH] fixing bug ramp in distributed mode change args with kwargs variable for slave master report ramp --- locust/ramping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locust/ramping.py b/locust/ramping.py index 9a60d60184..913731fb42 100644 --- a/locust/ramping.py +++ b/locust/ramping.py @@ -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"])