trale icon indicating copy to clipboard operation
trale copied to clipboard

Wrong calculation toward Target Weight

Open theAkito opened this issue 1 month ago • 0 comments

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:

  1. Set historical data, from past six months. Historic data is sporadic and not daily.
  2. Notice correct days left calculation.
  3. Set yesterday's weight to 66.6.
  4. Set today's weight to 66.7.
  5. 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.

theAkito avatar May 21 '24 11:05 theAkito