1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-25 23:34: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"
"os"
"path"
"runtime"
"strconv"
)
@ -249,5 +250,6 @@ func Run() {
Warn(err)
}
}
runtime.GOMAXPROCS(runtime.NumCPU())
BeeApp.Run()
}