trale
trale copied to clipboard
Wrong calculation toward Target Weight
Describe the bug The calculation of how many days are needed to reach target weight based on previous data is wrong, if the user sets a weight of for example 66.6 yesterday and today 66.7.
To Reproduce Steps to reproduce the behavior:
- Set historical data, from past six months. Historic data is sporadic and not daily.
- Notice correct days left calculation.
- Set yesterday's weight to 66.6.
- Set today's weight to 66.7.
- See calculation being completely wrong, saying for example, target weight will never be reached.
Expected behavior Calculations should stay correct, even if providing daily data.
User Information:
- Device: POCO X3 NFC
- OS: Custom ROM
- Version: Android 11
- Downloaded: F-Droid
Additional context I didn't have the opportunity to double check and definitely reproduce that it works in a faulty way with any number. Maybe it only happens in certain number ranges. I don't have time to check now.