diff options
author | Pete Johanson <peter@peterjohanson.com> | 2019-07-30 11:42:52 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2019-07-30 12:25:36 -0400 |
commit | 32aaf8da56379c45abf6735ea68951ac526e3a51 (patch) | |
tree | db54153a85e2fa4755aa1d24c0bfa570327bd59d /libpod/stats.go | |
parent | 040355d450aa7282071813c9517b50b901c9e497 (diff) | |
download | podman-32aaf8da56379c45abf6735ea68951ac526e3a51.tar.gz podman-32aaf8da56379c45abf6735ea68951ac526e3a51.tar.bz2 podman-32aaf8da56379c45abf6735ea68951ac526e3a51.zip |
Build fix for 32-bit systems.
* Fixes #3664.
Signed-off-by: Pete Johanson <peter@peterjohanson.com>
Diffstat (limited to 'libpod/stats.go')
-rw-r--r-- | libpod/stats.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/stats.go b/libpod/stats.go index 8101fbbbd..776870bd2 100644 --- a/libpod/stats.go +++ b/libpod/stats.go @@ -86,7 +86,8 @@ func getMemLimit(cgroupLimit uint64) uint64 { return cgroupLimit } - physicalLimit := si.Totalram + //nolint:unconvert + physicalLimit := uint64(si.Totalram) if cgroupLimit > physicalLimit { return physicalLimit } |