Closed CarstenWalther closed 6 years ago
Carsten, can you please update the main repo with the fix?
And what is thebest way to recreate the docker consumer after that?
Done.
Recreate the consumer with:
docker-compose rm
docker rmi pricewars_consumer
The next docker-compose up
creates a new consumer
The problem was an integer division where a float division was expected in
exponential(60.0 / $consumer_per_minute, random_generator)
.Other changes are:
list_of_threads
(nowthreads
) is now a class variable instead of a global variable. I tried it as instance variable but had problems initializing it.