mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add desc comments for GetCPUCoreCount (#9219)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/9221/head
parent
f68425cbf6
commit
e70722968c
|
@ -18,6 +18,7 @@ import (
|
|||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// GetCPUCoreCount returns the count of cpu core.
|
||||
func GetCPUCoreCount(logical bool) int {
|
||||
c, err := cpu.Counts(logical)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue