Skip to content

Commit

Permalink
runtime: clarify that NumCPU returns only available CPUs
Browse files Browse the repository at this point in the history
Update #11609.

Change-Id: Ie363facf13f5e62f1af4a8bdc42a18fb36e16ebf
Reviewed-on: https://go-review.googlesource.com/12022
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
ianlancetaylor committed Jul 10, 2015
1 parent 91ba0ab commit 2de67e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GOMAXPROCS(n int) int {
return ret
}

// NumCPU returns the number of logical CPUs on the local machine.
// NumCPU returns the number of logical CPUs usable by the current process.
func NumCPU() int {
return int(ncpu)
}
Expand Down

0 comments on commit 2de67e9

Please sign in to comment.