aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/debug.go')
-rw-r--r--src/runtime/debug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/debug.go b/src/runtime/debug.go
index c477e2b9f6..57e9ba8d7d 100644
--- a/src/runtime/debug.go
+++ b/src/runtime/debug.go
@@ -40,7 +40,7 @@ func GOMAXPROCS(n int) int {
// at process startup. Changes to operating system CPU allocation after
// process startup are not reflected.
func NumCPU() int {
- return int(ncpu)
+ return int(numCPUStartup)
}
// NumCgoCall returns the number of cgo calls made by the current process.