mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add desc comments for GetMemoryCount (#9274)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/9286/head
parent
45af2202e1
commit
4bac5b1f4d
|
@ -48,6 +48,7 @@ func GetCPUUsage() float64 {
|
|||
return percents[0]
|
||||
}
|
||||
|
||||
// GetMemoryCount returns the memory count in bytes.
|
||||
func GetMemoryCount() uint64 {
|
||||
stats, err := mem.VirtualMemory()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue