Setting number of processors to use to max available

master
Frederick F. Kautz IV 10 years ago
parent 72395798c8
commit f59535f052
  1. 3
      main.go

@ -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"

Loading…
Cancel
Save