Skip to content

Commit

Permalink
Merge pull request #19 from pedronis/master
Browse files Browse the repository at this point in the history
fix continuous resetting on of stats in master+slaves mode
  • Loading branch information
heyman committed Mar 20, 2012
2 parents d306e5a + 04be6d7 commit 616f4fb
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 616f4fb

Please sign in to comment.