MCPcopy Create free account
hub / github.com/TideSec/GoBypassAV / numberOfCPU

Function numberOfCPU

SandBox/main.go:89–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89func numberOfCPU() (int, error) {
90 a := runtime.NumCPU()
91 //fmt.Println("CPU核心数为:", a)
92 if a < 4 {
93 return 0, nil // 小于4核心数,返回0
94 } else {
95 return 1, nil // 大于4核心数,返回1
96 }
97}
98func numberOfTempFiles() (int, error) {
99 conn := os.Getenv("temp") // 通过环境变量读取temp文件夹路径
100 var k int

Callers 1

check_sandboxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected