Skip to content

Commit

Permalink
Merge pull request #1534 from locustio/fix-1531
Browse files Browse the repository at this point in the history
fix #1531 (ValueError: StatsEntry.use_response_times_cache must be set to True)
  • Loading branch information
cyberw authored Aug 20, 2020
2 parents bda00f6 + 7d366d0 commit 2927e38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,8 @@ def stats_history(runner):
"""Save current stats info to history for charts of report."""
while True:
stats = runner.stats
if not stats.total.use_response_times_cache:
break
r = {
'time': datetime.datetime.now().strftime("%H:%M:%S"),
'current_rps': stats.total.current_rps or 0,
Expand Down

0 comments on commit 2927e38

Please sign in to comment.