Skip to content

Commit

Permalink
Set GOMAXPROCS.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson committed Mar 29, 2015
1 parent caf3259 commit 24db5f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/influxd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func main() {
commit = "unknown"
}

// Set parallelism.
runtime.GOMAXPROCS(runtime.NumCPU())

// Shift binary name off argument list.
args := os.Args[1:]

Expand Down

0 comments on commit 24db5f2

Please sign in to comment.