mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Add desc comments for GetCPUCoreCount (#9219)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user