Skip to content
Snippets Groups Projects
Commit 9283ebe3 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

fix user generation count

parent a18be335
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ module Populator
end
def populate
total = (@total_count / (@store.duration / @store.iteration_duration).to_i).to_i
periods = (@store.duration / @store.iteration_duration).to_i
total = periods == @store.period ? @count : (@total_count / periods).to_i
@count -= total
# generate users
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment