move tests to gh actions (#9461)
This commit is contained in:
parent
2db8552a87
commit
3916f7b8b7
8 changed files with 72 additions and 11 deletions
|
|
@ -33,7 +33,8 @@ import (
|
|||
// NumCPU returns the number of logical CPUs usable by the current process.
|
||||
// If CPU cgroups limits are configured, use cfs_quota_us / cfs_period_us
|
||||
// as formula
|
||||
// https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt
|
||||
//
|
||||
// https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt
|
||||
func NumCPU() int {
|
||||
cpus := runtime.NumCPU()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue