Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added totals for print_stats (command line output) #354

Closed

Conversation

BeardedUnicorn
Copy link

Updated the output after locust is stopped to include the totals for the columns which were missing values. (Avg, Min, Max, Median.)

console_logger.info(r)

total_average = float(running_avg / total_stat_methods)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If locust is exited before executing any requests, this line will throw a ZeroDivisionError.

@BeardedUnicorn
Copy link
Author

@melissa-kam Thanks for the feedback. I've made the recommended changes to the PR.

@bsiver
Copy link

bsiver commented Jun 9, 2017

Any update on this? I have a need to run Locust headless, and would like to see the total stats displayed in the console output. Thanks!

@mbeacom
Copy link
Member

mbeacom commented Sep 8, 2017

@secretobsession Would you be interested in having this merged? Would you mind rebasing the branch for review?

Thank you!

@cyberw
Copy link
Collaborator

cyberw commented Oct 20, 2019

Hi @secretobsession ! There has been no activity in this PR for a long time and it has conflicts so I'm closing this. Please let me know if you want to reopen!

@cyberw cyberw closed this Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants