]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: clarify that NumCPU returns only available CPUs
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Jul 2015 13:20:51 +0000 (06:20 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Jul 2015 21:28:49 +0000 (21:28 +0000)
Update #11609.

Change-Id: Ie363facf13f5e62f1af4a8bdc42a18fb36e16ebf
Reviewed-on: https://go-review.googlesource.com/12022
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/debug.go

index 9aec3b03e0d8276853d35e673e54363e872b31eb..b7e7971104cf734d67bd8f54bd17739675e63f3d 100644 (file)
@@ -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)
 }