Skip to content

Commit

Permalink
Use get_current_response_time_percentile
Browse files Browse the repository at this point in the history
  • Loading branch information
mehta-ankit committed Dec 3, 2019
1 parent 307cc54 commit 23d5908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get(self, name, method):
"""
entry = self.entries.get((name, method))
if not entry:
entry = StatsEntry(self, name, method)
entry = StatsEntry(self, name, method, True)
self.entries[(name, method)] = entry
return entry

Expand Down Expand Up @@ -887,7 +887,7 @@ def stats_history_csv(stats_history_enabled=False):
for s in chain(stats_entries_per_iteration, [runners.locust_runner.stats.total]):
if s.num_requests:
percentile_str = ','.join([
str(int(s.get_response_time_percentile(x) or 0)) for x in PERCENTILES_TO_REPORT])
str(int(s.get_current_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 23d5908

Please sign in to comment.