Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
taojy123 committed Aug 20, 2020
1 parent a1e6e65 commit ce0e4d9
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 ce0e4d9

Please sign in to comment.