diff options
author | Djordje Lukic <djordje.lukic@docker.com> | 2019-07-15 10:30:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-15 10:30:59 +0200 |
commit | 98932e9cb4dcef791a93b1000cb7a400411906c0 (patch) | |
tree | c8722a213313802394248399c70dc0035721b02c /compose | |
parent | 1b326fce57ea761c738da8c852809c300466eef8 (diff) | |
parent | 59491c7d775b8a2f86532aa37fd4cc72b2b9459d (diff) |
Merge pull request #6754 from Goryudyuma/6740-fix-display
fix: The correct number is displayed
Diffstat (limited to 'compose')
-rw-r--r-- | compose/cli/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compose/cli/utils.py b/compose/cli/utils.py index 4cc055cc..bd06beef 100644 --- a/compose/cli/utils.py +++ b/compose/cli/utils.py @@ -137,7 +137,7 @@ def human_readable_file_size(size): if order >= len(suffixes): order = len(suffixes) - 1 - return '{0:.3g} {1}'.format( + return '{0:.4g} {1}'.format( size / float(1 << (order * 10)), suffixes[order] ) |