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

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
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

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 {