Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calculation for meditation minutes #453

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

theospears
Copy link
Collaborator

@theospears theospears commented Apr 28, 2024

Previously meditation minutes used the same algorithm as we used for time in bed. This was overly generous. It would count minutes containing meditation, which is different from the apple algorithm which counts total duration rounded to the nearest minute.

Update the calculation used in the app to match the Apple algorithm.

Fixes #452

Testing:
Put various test data into the simulator, and checked beeminder synced appropriately.

@theospears theospears changed the title Fix meditation minutes tracking Fix calculation for meditation minutes Apr 28, 2024
Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @theospears and the rest of your teammates on Graphite Graphite

@theospears theospears marked this pull request as ready for review April 28, 2024 03:00
@theospears theospears merged commit aba1acf into master Apr 29, 2024
3 checks passed
@theospears theospears deleted the meditation-minutes branch April 29, 2024 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inaccurate Mindful Minutes
1 participant