summaryrefslogtreecommitdiff
path: root/cmd/kpod/images.go
diff options
context:
space:
mode:
authorumohnani8 <umohnani@redhat.com>2017-11-28 09:34:07 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-28 16:09:13 +0000
commita1d0d9f5d1d72f3ca0d1d2af36f9542f6f21ff91 (patch)
tree1df7ab15e1d1c8075e4c081f2eb18e09624f3087 /cmd/kpod/images.go
parentc0eceaa403a739355c6e2715b3354f7b15f35fb8 (diff)
downloadpodman-a1d0d9f5d1d72f3ca0d1d2af36f9542f6f21ff91.tar.gz
podman-a1d0d9f5d1d72f3ca0d1d2af36f9542f6f21ff91.tar.bz2
podman-a1d0d9f5d1d72f3ca0d1d2af36f9542f6f21ff91.zip
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 <umohnani@redhat.com> Closes: #82 Approved by: rhatdan
Diffstat (limited to 'cmd/kpod/images.go')
-rw-r--r--cmd/kpod/images.go2
1 files changed, 1 insertions, 1 deletions
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)
}