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

Remove loop on every second #85

Merged
merged 2 commits into from
Jan 15, 2023
Merged

Remove loop on every second #85

merged 2 commits into from
Jan 15, 2023

Conversation

cubandle
Copy link
Contributor

Instead of checking for future addictions every second, check only at the time that they will begin.

@unbiaseduser What do you think of this change? I tested:

  • Creating a future addiction and leaving app open
  • Creating a future addiction, closing app and reopening it while it is still a future addiction
  • Creating a future addiction, closing app and reopening it after the start time has passed

cubandle and others added 2 commits January 14, 2023 21:49
Instead of checking for future addictions every second, check only at
the time that they will begin.
@KiARC KiARC merged commit 5843284 into KiARC:master Jan 15, 2023
@cubandle cubandle deleted the optimize_loop branch January 15, 2023 07:09
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.

2 participants