mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-08 16:23:42 -04:00
Merge pull request #8768 from sersorrel/push-rzkyyukwytos
Remove unnecessary check that Padmé overhead is at most 12%
This commit is contained in:
commit
a34f4a1dae
1 changed files with 1 additions and 5 deletions
|
|
@ -613,11 +613,7 @@ class ObfuscateSize(CompressorBase):
|
|||
|
||||
padded_size = (compr_size + bitMask) & ~bitMask # Apply rounding
|
||||
|
||||
# Ensure max 12% overhead
|
||||
max_allowed = int(compr_size * 1.12)
|
||||
final_size = min(padded_size, max_allowed)
|
||||
|
||||
return final_size - compr_size # Return only the additional padding size
|
||||
return padded_size - compr_size # Return only the additional padding size
|
||||
|
||||
# Maps valid compressor names to their class
|
||||
COMPRESSOR_TABLE = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue