summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2019-07-30 11:42:52 -0400
committerPete Johanson <peter@peterjohanson.com>2019-07-30 12:25:36 -0400
commit32aaf8da56379c45abf6735ea68951ac526e3a51 (patch)
treedb54153a85e2fa4755aa1d24c0bfa570327bd59d
parent040355d450aa7282071813c9517b50b901c9e497 (diff)
downloadpodman-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>
-rw-r--r--libpod/stats.go3
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
}