Skip to content

Commit

Permalink
Fix bug when populating with multiple threads where count would be wa…
Browse files Browse the repository at this point in the history
…y off.
  • Loading branch information
rustyrazorblade committed Apr 25, 2024
1 parent c45c3ec commit 272cee4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,12 @@ class Run(val command: String) : IStressCommand {
}
option.rows
}
} * threads
}

log.info { "Prepopulating data with $max records per thread" }
println("Prepopulating data with $max records per thread ($threads)")

if(max > 0) {
ProgressBar("Populate Progress", max, ProgressBarStyle.ASCII).use {
ProgressBar("Populate Progress", max * threads, ProgressBarStyle.ASCII).use {
// update the timer every second, starting 1 second from now, as a daemon thread
val timer = fixedRateTimer("progress-bar", true, 1000, 1000) {
it.stepTo(metrics.populate.count)
Expand Down

0 comments on commit 272cee4

Please sign in to comment.