Skip to content

Commit

Permalink
Merge pull request #1197 from appian/fixRequestsCsvPercentiles
Browse files Browse the repository at this point in the history
Use `response_time_percentile` for <name>_stats.csv file instead of `current_response_time_percentile`
  • Loading branch information
cyberw authored Dec 16, 2019
2 parents 1c954bf + 2744d83 commit 6ba31c8
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 @@ -812,7 +812,7 @@ def requests_csv():
for s in chain(sort_stats(runners.locust_runner.request_stats), [runners.locust_runner.stats.total]):
if s.num_requests:
percentile_str = ','.join([
str(int(s.get_current_response_time_percentile(x) or 0)) for x in PERCENTILES_TO_REPORT])
str(int(s.get_response_time_percentile(x) or 0)) for x in PERCENTILES_TO_REPORT])
else:
percentile_str = ','.join(['"N/A"'] * len(PERCENTILES_TO_REPORT))

Expand Down

0 comments on commit 6ba31c8

Please sign in to comment.