find total memory instead of available (#525)

This commit is contained in:
Salah Aldeen Al Saleh
2022-01-11 17:02:44 -08:00
committed by GitHub
parent 7425f583fc
commit 6f0cf6550d

View File

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