Skip to content

Checking ratio of the compression #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

sp0ng3Bob
Copy link
Contributor

Hi.

PROBLEM:

Sometimes the compression doesn't actually do much and the ratio percentage is negative.

SOLUTION:

I added a simple if to check whether the ratio is negative and if so returning False from the compress function and aborting the end process with an exit code 2.

Cheers, B0b

@theeko74
Copy link
Owner

Negative ratio means compression is worst, so we should keep it

@theeko74 theeko74 closed this Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants