summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-11 09:29:19 -0700
committerGitHub <noreply@github.com>2019-03-11 09:29:19 -0700
commitf5afe88098d8825ea63ccb63875d48edab0eb111 (patch)
tree73dce6b363d83f6dcf1af1cfaafb415c8772864e /pkg
parent8656d2d887b32c320b4dd453314ce95cd9cad6a5 (diff)
parent55e24c65ce407a0f7778764f432621fbd50018bd (diff)
downloadpodman-f5afe88098d8825ea63ccb63875d48edab0eb111.tar.gz
podman-f5afe88098d8825ea63ccb63875d48edab0eb111.tar.bz2
podman-f5afe88098d8825ea63ccb63875d48edab0eb111.zip
Merge pull request #2597 from jwhonce/issue/2016
Initialize field in InfoHost struct
Diffstat (limited to 'pkg')
-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),