[skip ci] Add desc comments for GetCPUCoreCount (#9219)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9221/head
dragondriver 2021-10-04 19:30:02 +08:00 committed by GitHub
parent f68425cbf6
commit e70722968c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 {