mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
find total memory instead of available (#525)
This commit is contained in:
committed by
GitHub
parent
7425f583fc
commit
6f0cf6550d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user