aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot2019-01-04 19:22:43 -0600
committerGerrit Code Review2019-01-04 19:22:43 -0600
commitdacde2259fd9fbf6c28f5c2e3a60225b5a620558 (patch)
tree9e9e2f3fc1ca31805beb796f6df64e1b281c32f3
parentafdd7b99e5a761c775352a00a04c942d6b7b99d2 (diff)
parente8e7958c13a18c1a381fe7ac0f4df36a80ef05ad (diff)
downloadplatform-build-dacde2259fd9fbf6c28f5c2e3a60225b5a620558.tar.gz
platform-build-dacde2259fd9fbf6c28f5c2e3a60225b5a620558.tar.xz
platform-build-dacde2259fd9fbf6c28f5c2e3a60225b5a620558.zip
Merge "Increase slack for inode estimation algorithm"
-rwxr-xr-xtools/releasetools/build_image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py
index 146b8683b..d71060394 100755
--- a/tools/releasetools/build_image.py
+++ b/tools/releasetools/build_image.py
@@ -75,8 +75,8 @@ def GetInodeUsage(path):
75 """ 75 """
76 cmd = ["find", path, "-print"] 76 cmd = ["find", path, "-print"]
77 output = common.RunAndCheckOutput(cmd, verbose=False) 77 output = common.RunAndCheckOutput(cmd, verbose=False)
78 # increase by 25 % as number of files and directories is not whole picture. 78 # TODO(b/122328872) Fix estimation algorithm to not need the multiplier.
79 return output.count('\n') * 30 // 24 79 return output.count('\n') * 2
80 80
81 81
82def GetFilesystemCharacteristics(sparse_image_path): 82def GetFilesystemCharacteristics(sparse_image_path):