Skip to content

Commit 1a0fe06

Browse files
committed
[EntityCulling] Fix benchmark always use 4 threads
1 parent 6cfa2b7 commit 1a0fe06

File tree

1 file changed

+2
-2
lines changed
  • bukkit/version/v1_18/src/main/kotlin/io/github/rothes/esu/bukkit/module/networkthrottle/entityculling/v1_18

1 file changed

+2
-2
lines changed

bukkit/version/v1_18/src/main/kotlin/io/github/rothes/esu/bukkit/module/networkthrottle/entityculling/v1_18/RaytraceHandlerImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ class RaytraceHandlerImpl: RaytraceHandler<RaytraceHandlerImpl.RaytraceConfig, E
127127
sender.message("Running benchmark")
128128
runBlocking {
129129
var count = 0
130-
val jobs = buildList(4) {
131-
repeat(4) {
130+
val jobs = buildList(lastThreads) {
131+
repeat(lastThreads) {
132132
val job = launch(coroutine!!) {
133133
while (isActive) {
134134
var get = ++i

0 commit comments

Comments
 (0)