mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +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
|
||||
}
|
||||
|
||||
// GetCPUUsage returns the cpu usage in percentage.
|
||||
func GetCPUUsage() float64 {
|
||||
percents, err := cpu.Percent(0, false)
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user