Fix compression ratio check.
This commit is contained in:
+1
-1
@@ -310,7 +310,7 @@ bool Packer::checkDefaultCompressionRatio(unsigned u_len, unsigned c_len) const
|
||||
#if 1
|
||||
if (gain >= 4096) // ok if we have 4096 bytes gain
|
||||
return true;
|
||||
if (c_len >= u_len - u_len / 8) // ok if we have 12.5% gain
|
||||
if (gain >= u_len / 16) // ok if we have 6.25% gain
|
||||
return true;
|
||||
return false;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user