preactjs / compressed-size-action

GitHub Action that adds compressed size changes to your PRs.
https://github.com/marketplace/actions/compressed-size-action
MIT License
602 stars 84 forks source link

% change value is incorrect #31

Closed necolas closed 3 years ago

necolas commented 4 years ago

If you have a 1KB file, reduced by 0.5KB, it reports the change as 100% rather than 50%.

This line needs to use the original size as the divisor, so delta + size rather than size.