Merge changes I6457933a,I955aa0fa am: db3c8985be
am: 1a34e1ed7e
Change-Id: I616c7b3642ea5a29cc23f3f3fa4959cc81960e79
This commit is contained in:
@@ -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)
|
||||||
# TODO(b/122328872) Fix estimation algorithm to not need the multiplier.
|
# increase by > 4% as number of files and directories is not whole picture.
|
||||||
return output.count('\n') * 2
|
return output.count('\n') * 25 // 24
|
||||||
|
|
||||||
|
|
||||||
def GetFilesystemCharacteristics(image_path, sparse_image=True):
|
def GetFilesystemCharacteristics(image_path, sparse_image=True):
|
||||||
|
Reference in New Issue
Block a user