ddc3d7d5 by astaxie

beego default set GOMAXPROCS to NumCPU

1 parent cf60a3f4
Showing 1 changed file with 2 additions and 0 deletions
...@@ -9,6 +9,7 @@ import ( ...@@ -9,6 +9,7 @@ import (
9 "net/http/fcgi" 9 "net/http/fcgi"
10 "os" 10 "os"
11 "path" 11 "path"
12 "runtime"
12 "strconv" 13 "strconv"
13 ) 14 )
14 15
...@@ -249,5 +250,6 @@ func Run() { ...@@ -249,5 +250,6 @@ func Run() {
249 Warn(err) 250 Warn(err)
250 } 251 }
251 } 252 }
253 runtime.GOMAXPROCS(runtime.NumCPU())
252 BeeApp.Run() 254 BeeApp.Run()
253 } 255 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!