Skip to content

Commit

Permalink
only one proc
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jul 24, 2024
1 parent 2e42413 commit 08b8ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runtime/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func initRuntime(maxProc int) {
}
}
if maxProc <= 0 {
maxProc = 2
maxProc = 1
}
if maxProc > runtime.NumCPU()*2 {
maxProc = runtime.NumCPU() * 2
Expand Down

0 comments on commit 08b8ea6

Please sign in to comment.