Merge changes I6457933a,I955aa0fa

* changes:
  Revert "Relax inode usage estimation slack for DAP right sizing"
  Revert "Increase slack for inode estimation algorithm"
This commit is contained in:
Mark Salyzyn 2019-01-15 20:33:50 +00:00 committed by Gerrit Code Review
commit db3c8985be
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ def GetInodeUsage(path):
"""
cmd = ["find", path, "-print"]
output = common.RunAndCheckOutput(cmd, verbose=False)
# TODO(b/122328872) Fix estimation algorithm to not need the multiplier.
return output.count('\n') * 2
# increase by > 4% as number of files and directories is not whole picture.
return output.count('\n') * 25 // 24
def GetFilesystemCharacteristics(image_path, sparse_image=True):