From 6f0cf6550d53adf08c399ff38f20082564d7714a Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Tue, 11 Jan 2022 17:02:44 -0800 Subject: [PATCH] find total memory instead of available (#525) --- pkg/collect/host_memory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collect/host_memory.go b/pkg/collect/host_memory.go index 41ddf1a5..c3d28e4a 100644 --- a/pkg/collect/host_memory.go +++ b/pkg/collect/host_memory.go @@ -31,7 +31,7 @@ func (c *CollectHostMemory) Collect(progressChan chan<- interface{}) (map[string if err != nil { return nil, errors.Wrap(err, "failed to read virtual memory") } - memoryInfo.Total = vmstat.Available + memoryInfo.Total = vmstat.Total b, err := json.Marshal(memoryInfo) if err != nil {