Setting number of processors to use to max available

This commit is contained in:
Frederick F. Kautz IV 2015-04-30 19:23:03 -07:00
parent 72395798c8
commit f59535f052
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@ func main() {
iodine.SetGlobalState("minio.version", Version)
iodine.SetGlobalState("minio.starttime", time.Now().Format(time.RFC3339))
// set up go max processes
runtime.GOMAXPROCS(runtime.NumCPU())
// set up app
app := cli.NewApp()
app.Name = "minio"