소스 검색

fix: The correct number is displayed

Signed-off-by: Kei Matsumoto <[email protected]>
Goryudyuma 6 년 전
부모
커밋
f9099c91ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compose/cli/utils.py

+ 1 - 1
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]
     )