From 55e24c65ce407a0f7778764f432621fbd50018bd Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Fri, 8 Mar 2019 16:18:35 -0700 Subject: Initialize field in InfoHost struct Fixes #2016 Signed-off-by: Jhon Honce --- pkg/varlinkapi/system.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/varlinkapi') diff --git a/pkg/varlinkapi/system.go b/pkg/varlinkapi/system.go index 3f32615ec..816143e9f 100644 --- a/pkg/varlinkapi/system.go +++ b/pkg/varlinkapi/system.go @@ -52,6 +52,7 @@ func (i *LibpodAPI) GetInfo(call iopodman.VarlinkCall) error { Mem_free: host["MemFree"].(int64), Mem_total: host["MemTotal"].(int64), Swap_free: host["SwapFree"].(int64), + Swap_total: host["SwapTotal"].(int64), Arch: host["arch"].(string), Cpus: int64(host["cpus"].(int)), Hostname: host["hostname"].(string), -- cgit v1.2.3-54-g00ecf