1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 18:50:55 +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()
}