1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 05:01:28 +00:00

beego default set GOMAXPROCS to NumCPU

This commit is contained in:
astaxie 2013-04-11 11:17:18 +08:00
parent cf60a3f463
commit ddc3d7d58c

View File

@ -9,6 +9,7 @@ import (
"net/http/fcgi" "net/http/fcgi"
"os" "os"
"path" "path"
"runtime"
"strconv" "strconv"
) )
@ -249,5 +250,6 @@ func Run() {
Warn(err) Warn(err)
} }
} }
runtime.GOMAXPROCS(runtime.NumCPU())
BeeApp.Run() BeeApp.Run()
} }