diff options
| author | Ian Lance Taylor <iant@golang.org> | 2015-07-10 06:20:51 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2015-07-10 21:28:49 +0000 |
| commit | 2de67e9974b2d4be23e53d3aee1c969840e6baa2 (patch) | |
| tree | c6ae9218c49eec6eeb578e3eb96bacf3e2af1887 /src/runtime | |
| parent | 91ba0abef12df6824bcf912ce4bc62f5c9e1fe91 (diff) | |
| download | go-2de67e9974b2d4be23e53d3aee1c969840e6baa2.tar.xz | |
runtime: clarify that NumCPU returns only available CPUs
Update #11609.
Change-Id: Ie363facf13f5e62f1af4a8bdc42a18fb36e16ebf
Reviewed-on: https://go-review.googlesource.com/12022
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/debug.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/debug.go b/src/runtime/debug.go index 9aec3b03e0..b7e7971104 100644 --- a/src/runtime/debug.go +++ b/src/runtime/debug.go @@ -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) } |
