Menu

#145 Possible underflow at bytes saved

12.x
open
nobody
None
2025-12-06
2025-12-06
kekmacska
No

FileOptimizer displayed this after a job at bytes saved. I don't know for sure, but since this number is close to the max of UInt64, i suspect that an underflow happened and the variable wrapped around. It can happen that compression tools end up creating a bigger file, due to overhead. This could be mitigated by using a signed integer or/and transforming such odd numbers in ViewModel in a way that if file size increase happens, the UI will say +${bytes} increase due to overhead or something, using a simple ternary operator for example

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB