Skip to content

Commit d3a08b2

Browse files
committed
Adjust CPU usage calculation in worker pool initialization.
Changed the CPU count from `NumCPU() * 2` to `NumCPU()` to prevent potential over-allocation of resources. This ensures the system operates within its actual CPU capacity, improving efficiency and stability.
1 parent 3e8bb2b commit d3a08b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

correlation/ti/ti.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func IsBlocklisted() {
9393
},
9494
}
9595

96-
numCPU := runtime.NumCPU() * 2
96+
numCPU := runtime.NumCPU()
9797
for i := 0; i < numCPU; i++ {
9898
go func() {
9999
for {

0 commit comments

Comments
 (0)