Skip to content

Commit

Permalink
fix #1531 (taken from taojy123@ce0e4d9)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Aug 20, 2020
1 parent 828efb5 commit 7d366d0
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 7d366d0

Please sign in to comment.