releasetools: Fix an equality check bug when asserting stash size.
Otherwise the comparison is inconsistent between ReviseStashSize() and WriteTransfers(). Bug: 35775675 Test: Successfully generate a previously failed incremental. Change-Id: I554a51a210bf322cb5c79e28cf85607a417b094a
This commit is contained in:
parent
56a2d9ff56
commit
e8c68a03c8
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ class BlockImageDiff(object):
|
|||
cache_size = common.OPTIONS.cache_size
|
||||
stash_threshold = common.OPTIONS.stash_threshold
|
||||
max_allowed = cache_size * stash_threshold
|
||||
assert max_stashed_blocks * self.tgt.blocksize < max_allowed, \
|
||||
assert max_stashed_blocks * self.tgt.blocksize <= max_allowed, \
|
||||
'Stash size %d (%d * %d) exceeds the limit %d (%d * %.2f)' % (
|
||||
max_stashed_blocks * self.tgt.blocksize, max_stashed_blocks,
|
||||
self.tgt.blocksize, max_allowed, cache_size,
|
||||
|
|
Loading…
Reference in a new issue