Skip to content

Commit 6f0cf65

Browse files
authored
find total memory instead of available (#525)
1 parent 7425f58 commit 6f0cf65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/collect/host_memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (c *CollectHostMemory) Collect(progressChan chan<- interface{}) (map[string
3131
if err != nil {
3232
return nil, errors.Wrap(err, "failed to read virtual memory")
3333
}
34-
memoryInfo.Total = vmstat.Available
34+
memoryInfo.Total = vmstat.Total
3535

3636
b, err := json.Marshal(memoryInfo)
3737
if err != nil {

0 commit comments

Comments
 (0)