1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 19:44:14 +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()
} }