[skip ci] Add desc comments for GetMemoryCount (#9274)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9286/head
dragondriver 2021-10-05 20:41:05 +08:00 committed by GitHub
parent 45af2202e1
commit 4bac5b1f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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