diff options
author | Hridya Valsaraju | 2019-01-03 19:19:50 -0600 |
---|---|---|
committer | Mark Salyzyn | 2019-01-14 11:44:26 -0600 |
commit | 9aa42f1721207bbd801f9f140b3b14e59db7ddfb (patch) | |
tree | a3a586b07e6422818e7cde7d17dad772a6b83290 /tools/releasetools | |
parent | 1df75e3099e706fbe4df1393aa6a08e5c3ff823c (diff) | |
download | platform-build-9aa42f1721207bbd801f9f140b3b14e59db7ddfb.tar.gz platform-build-9aa42f1721207bbd801f9f140b3b14e59db7ddfb.tar.xz platform-build-9aa42f1721207bbd801f9f140b3b14e59db7ddfb.zip |
Revert "Increase slack for inode estimation algorithm"
This reverts commit e8e7958c13a18c1a381fe7ac0f4df36a80ef05ad.
Test: build
Bug: 122328872
Change-Id: I955aa0fa489ab62ec1643127d106925dcb9675ca
Diffstat (limited to 'tools/releasetools')
-rwxr-xr-x | tools/releasetools/build_image.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index 521b319ed..2bf7be05f 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 | # TODO(b/122328872) Fix estimation algorithm to not need the multiplier. | 78 | # increase by 25 % as number of files and directories is not whole picture. |
79 | return output.count('\n') * 2 | 79 | return output.count('\n') * 30 // 24 |
80 | 80 | ||
81 | 81 | ||
82 | def GetFilesystemCharacteristics(image_path, sparse_image=True): | 82 | def GetFilesystemCharacteristics(image_path, sparse_image=True): |