Merge "Increase slack for inode estimation algorithm"
This commit is contained in:
commit
dacde2259f
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ def GetInodeUsage(path):
|
||||||
"""
|
"""
|
||||||
cmd = ["find", path, "-print"]
|
cmd = ["find", path, "-print"]
|
||||||
output = common.RunAndCheckOutput(cmd, verbose=False)
|
output = common.RunAndCheckOutput(cmd, verbose=False)
|
||||||
# increase by 25 % as number of files and directories is not whole picture.
|
# TODO(b/122328872) Fix estimation algorithm to not need the multiplier.
|
||||||
return output.count('\n') * 30 // 24
|
return output.count('\n') * 2
|
||||||
|
|
||||||
|
|
||||||
def GetFilesystemCharacteristics(sparse_image_path):
|
def GetFilesystemCharacteristics(sparse_image_path):
|
||||||
|
|
Loading…
Reference in a new issue