myzhan / locust4j

Locust4j is a load generator for locust, written in Java.
MIT License
81 stars 30 forks source link

Setup the Slave Report Interval #8

Closed dmarcas closed 3 years ago

dmarcas commented 4 years ago

I would like to change the slave interval for the reporting but, if I'm not wrong, this a private constant inside the StatsTimer class. Is there any way to change this value?

myzhan commented 4 years ago

Why do you want to change the interval? It's the default value of locust.

dmarcas commented 4 years ago

I want to retrieve slave results every 1 second. The default in locust is 2 seconds and I think that it would be great to get this option opened (if I'm not wrong Locust has this option available). In my case I want to ensure that if something goes wrong I have the latest results registered in my csv.

myzhan commented 4 years ago

The default value of Locust is 3 seconds. Code

It will be great if you can dig into this and send me a PR.

dmarcas commented 4 years ago

Hey, your'e right is 3 (sorry).

I'll dig into this in order to send you the PR!

Thanks!