From 32aaf8da56379c45abf6735ea68951ac526e3a51 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Tue, 30 Jul 2019 11:42:52 -0400 Subject: Build fix for 32-bit systems. * Fixes #3664. Signed-off-by: Pete Johanson --- libpod/stats.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpod') 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 } -- cgit v1.2.3-54-g00ecf