From 4bac5b1f4dec5c9ae516f7328e53306e51e750cc Mon Sep 17 00:00:00 2001 From: dragondriver Date: Tue, 5 Oct 2021 20:41:05 +0800 Subject: [PATCH] [skip ci] Add desc comments for GetMemoryCount (#9274) Signed-off-by: dragondriver --- internal/util/metricsinfo/hardware_info.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/util/metricsinfo/hardware_info.go b/internal/util/metricsinfo/hardware_info.go index c9db6c72ae..690f10cacb 100644 --- a/internal/util/metricsinfo/hardware_info.go +++ b/internal/util/metricsinfo/hardware_info.go @@ -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 {