mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add desc comments for GetCPUUsage (#9066)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/9067/head
parent
2e47e38b9d
commit
1d5062b63a
|
@ -29,6 +29,7 @@ func GetCPUCoreCount(logical bool) int {
|
|||
return c
|
||||
}
|
||||
|
||||
// GetCPUUsage returns the cpu usage in percentage.
|
||||
func GetCPUUsage() float64 {
|
||||
percents, err := cpu.Percent(0, false)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue