Merge "releasetools: Use du -b" am: b5e650a119
Change-Id: I0248435b307fae507ee905a271580f5a3728c53d
This commit is contained in:
@@ -57,7 +57,7 @@ def GetDiskUsage(path):
|
|||||||
Returns:
|
Returns:
|
||||||
The number of bytes based on a 1K block_size.
|
The number of bytes based on a 1K block_size.
|
||||||
"""
|
"""
|
||||||
cmd = ["du", "-k", "-s", path]
|
cmd = ["du", "-b", "-k", "-s", path]
|
||||||
output = common.RunAndCheckOutput(cmd, verbose=False)
|
output = common.RunAndCheckOutput(cmd, verbose=False)
|
||||||
return int(output.split()[0]) * 1024
|
return int(output.split()[0]) * 1024
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user