From a1d0d9f5d1d72f3ca0d1d2af36f9542f6f21ff91 Mon Sep 17 00:00:00 2001 From: umohnani8 Date: Tue, 28 Nov 2017 09:34:07 -0500 Subject: Update man pages and output for kpod images The size had a precision of 4, but wanted a precision of 3 to match the output of docker images updated the man page with more examples vendored in new version of docker/go-units to allow for customized precisions Signed-off-by: umohnani8 Closes: #82 Approved by: rhatdan --- cmd/kpod/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/kpod') diff --git a/cmd/kpod/images.go b/cmd/kpod/images.go index 4ab44365f..71bc877c9 100644 --- a/cmd/kpod/images.go +++ b/cmd/kpod/images.go @@ -218,7 +218,7 @@ func getImagesTemplateOutput(runtime *libpod.Runtime, images []*storage.Image, o ID: imageID, Digest: imageDigest, Created: units.HumanDuration(time.Since((createdTime))) + " ago", - Size: units.HumanSize(float64(size)), + Size: units.HumanSizeWithPrecision(float64(size), 3), } imagesOutput = append(imagesOutput, params) } -- cgit v1.2.3-54-g00ecf