Skip to content

Commit

Permalink
further fix on_slave_report now that request keys are method+name
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronis committed Mar 20, 2012
1 parent d306e5a commit 04be6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def on_report_to_master(client_id, data):
def on_slave_report(client_id, data):
for stats in data["stats"]:
request_key = (stats.method, stats.name)
if not stats.name in RequestStats.requests:
if not request_key in RequestStats.requests:
RequestStats.requests[request_key] = RequestStats(stats.method, stats.name)
RequestStats.requests[request_key].iadd_stats(stats, full_request_history=True)
RequestStats.global_last_request_timestamp = max(RequestStats.global_last_request_timestamp, stats.last_request_timestamp)
Expand Down

0 comments on commit 04be6d7

Please sign in to comment.