mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-06 19:02:18 +08:00
[skip ci] Add desc comments for GetCPUUsage (#9066)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
parent
2e47e38b9d
commit
1d5062b63a
@ -29,6 +29,7 @@ func GetCPUCoreCount(logical bool) int {
|
|||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetCPUUsage returns the cpu usage in percentage.
|
||||||
func GetCPUUsage() float64 {
|
func GetCPUUsage() float64 {
|
||||||
percents, err := cpu.Percent(0, false)
|
percents, err := cpu.Percent(0, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user