forked from openkylin/platform_build
Merge "Increase slack for inode estimation algorithm" am: dacde2259f
am: e5af443000
Change-Id: Ic4f67c1155fa148a4b3f1cdeca8bf7d8edcf65dd
This commit is contained in:
commit
be281179d4
|
@ -75,8 +75,8 @@ def GetInodeUsage(path):
|
|||
"""
|
||||
cmd = ["find", path, "-print"]
|
||||
output = common.RunAndCheckOutput(cmd, verbose=False)
|
||||
# increase by 25 % as number of files and directories is not whole picture.
|
||||
return output.count('\n') * 30 // 24
|
||||
# TODO(b/122328872) Fix estimation algorithm to not need the multiplier.
|
||||
return output.count('\n') * 2
|
||||
|
||||
|
||||
def GetFilesystemCharacteristics(sparse_image_path):
|
||||
|
|
Loading…
Reference in New Issue