Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get the number of logcal CPUs dynamically
runtime.NumCPU() return the number of logical CPUs at the startup of the process, https://golang.org/pkg/runtime/#NumCPU. gopsutil return the current number of CPUs, giving the correct number when CPU hot un/plug are being done.
- Loading branch information