mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
fix: The correct number is displayed
Signed-off-by: Kei Matsumoto <umaretekyoumade@gmail.com>
This commit is contained in:
parent
df2e833cf0
commit
f9099c91ae
@ -137,7 +137,7 @@ def human_readable_file_size(size):
|
|||||||
if order >= len(suffixes):
|
if order >= len(suffixes):
|
||||||
order = len(suffixes) - 1
|
order = len(suffixes) - 1
|
||||||
|
|
||||||
return '{0:.3g} {1}'.format(
|
return '{0:.4g} {1}'.format(
|
||||||
size / float(1 << (order * 10)),
|
size / float(1 << (order * 10)),
|
||||||
suffixes[order]
|
suffixes[order]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user