Skip to content

Commit

Permalink
Fix Prevent maxForks less than zero [ci fast]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Apr 17, 2024
1 parent dcff41a commit 7676dd9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -306,7 +306,7 @@ class TaskProcessor {
this.config = config
this.taskBody = taskBody
this.name = name
this.maxForks = config.maxForks ? config.maxForks as int : 0
this.maxForks = config.maxForks && config.maxForks>0 ? config.maxForks as int : 0
this.forksCount = maxForks ? new LongAdder() : null
this.isFair0 = config.getFair()
}
Expand Down

0 comments on commit 7676dd9

Please sign in to comment.