Skip to content

Commit

Permalink
Merge pull request #1060 from williamlhunter/bugfix-RPS-plot
Browse files Browse the repository at this point in the history
Fixed issue with Total Requests Per Second plot
  • Loading branch information
cyberw authored Oct 20, 2019
2 parents 4bf7f6e + 945dd96 commit 435f349
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def request_stats():
# Truncate the total number of stats and errors displayed since a large number of rows will cause the app
# to render extremely slowly. Aggregate stats should be preserved.
report = {"stats": stats[:500], "errors": errors[:500]}
if len(stats) > 500:
report["stats"] += [stats[-1]]

if stats:
report["total_rps"] = stats[len(stats)-1]["current_rps"]
Expand Down

0 comments on commit 435f349

Please sign in to comment.