diff options
author | Jhon Honce <jhonce@redhat.com> | 2018-10-31 14:22:49 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2018-11-01 07:39:35 -0700 |
commit | 0f232037f6cfb24807dac2f78f1d645cea535b27 (patch) | |
tree | efafef3d2ac6fdc88bba7ef1c40da31dadb49a4c /contrib/python | |
parent | 20a3a53c2faea408af47023ea60c76b5b5ecea3c (diff) | |
download | podman-0f232037f6cfb24807dac2f78f1d645cea535b27.tar.gz podman-0f232037f6cfb24807dac2f78f1d645cea535b27.tar.bz2 podman-0f232037f6cfb24807dac2f78f1d645cea535b27.zip |
Change humanize to use MB vs MiB.
Fixes #1653
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'contrib/python')
-rw-r--r-- | contrib/python/pypodman/pypodman/lib/actions/history_action.py | 2 | ||||
-rw-r--r-- | contrib/python/pypodman/pypodman/lib/actions/images_action.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/pypodman/pypodman/lib/actions/history_action.py b/contrib/python/pypodman/pypodman/lib/actions/history_action.py index 3e3f539fc..f9aaa54f6 100644 --- a/contrib/python/pypodman/pypodman/lib/actions/history_action.py +++ b/contrib/python/pypodman/pypodman/lib/actions/history_action.py @@ -60,7 +60,7 @@ class History(AbstractActionBase): if self._args.human: fields.update({ 'size': - humanize.naturalsize(details.size, binary=True), + humanize.naturalsize(details.size), 'created': humanize.naturaldate( podman.datetime_parse(details.created)), diff --git a/contrib/python/pypodman/pypodman/lib/actions/images_action.py b/contrib/python/pypodman/pypodman/lib/actions/images_action.py index d28e32db9..b8f5ccc78 100644 --- a/contrib/python/pypodman/pypodman/lib/actions/images_action.py +++ b/contrib/python/pypodman/pypodman/lib/actions/images_action.py @@ -65,7 +65,7 @@ class Images(AbstractActionBase): 'created': humanize.naturaldate(podman.datetime_parse(image.created)), 'size': - humanize.naturalsize(int(image.size), binary=True), + humanize.naturalsize(int(image.size)), 'repoDigests': ' '.join(image.repoDigests), }) |