Skip to content

Commit

Permalink
accepting target users count as decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
harikrishnan83 committed Sep 5, 2021
1 parent eada654 commit 7b72f7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GatlingWorkLoadModelStep {
var randomised: Boolean = _

@BeanProperty
var targetUserCount: Int = _
var targetUserCount: Double = _

def durationAsFiniteDuration = Duration(duration).asInstanceOf[FiniteDuration]
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/org/znsio/perfiz/PerfizSimulation.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PerfizSimulation extends Simulation {
case ConstantConcurrentUsers => constantConcurrentUsers(loadPattern.getUserCount()) during
loadPattern.durationAsFiniteDuration
case RampConcurrentUsers => rampConcurrentUsers(loadPattern.getUserCount()) to
loadPattern.getTargetUserCount() during
loadPattern.getTargetUserCount().toInt during
loadPattern.durationAsFiniteDuration
}
})
Expand Down

0 comments on commit 7b72f7f

Please sign in to comment.