timfraedrich / OutRun

OutRun is an open-source, privacy oriented, outdoor fitness tracker.
https://outrun.tadris.de
GNU General Public License v3.0
697 stars 64 forks source link

Negative duration of workout #87

Open selfawaresoup opened 1 year ago

selfawaresoup commented 1 year ago

Describe the bug i recorded a cycling workout today and it ended up having a negative duration which in turn messed up a lot of the other stats, like calories per minute.

Start and end time are shown correctly though.

To Reproduce

I don’t know how to reproduce this bug, it’s the first time this has happened for me.

Expected behavior Duration should be positive and match the actual duration between start and end time

Screenshots IMG_0874 IMG_0875

Device Information (please complete the following information):

selfawaresoup commented 1 year ago

Got some more info on this: it seems to only happen when a workout is paused for a significant amount of time.

Shrinks99 commented 1 year ago

Have also experienced this issue, it seems to occur when you manually pause a workout and forget to unpause it.

One possible half solution for this might be to send a notification to the user if the device is in motion (tracking steps or movement) for a significant amount of time after the user has paused reminding them that they still have a workout in progress?