diff --git a/locust/stats.py b/locust/stats.py index 76a1ad5f45..915c3ec14d 100644 --- a/locust/stats.py +++ b/locust/stats.py @@ -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,