summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi/system.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2019-03-08 16:18:35 -0700
committerJhon Honce <jhonce@redhat.com>2019-03-11 07:30:32 -0700
commit55e24c65ce407a0f7778764f432621fbd50018bd (patch)
tree8d3b846d4bdbe94122d394a0214d7a7ee26b13d5 /pkg/varlinkapi/system.go
parentb33a00ef96601d7ce2389ac634e86847239d7d2e (diff)
downloadpodman-55e24c65ce407a0f7778764f432621fbd50018bd.tar.gz
podman-55e24c65ce407a0f7778764f432621fbd50018bd.tar.bz2
podman-55e24c65ce407a0f7778764f432621fbd50018bd.zip
Initialize field in InfoHost struct
Fixes #2016 Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/varlinkapi/system.go')
-rw-r--r--pkg/varlinkapi/system.go1
1 files changed, 1 insertions, 0 deletions
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),