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

Code efficiency improvement and database fixes #2

Merged
merged 4 commits into from
Jan 26, 2024
Merged

Conversation

miikasda
Copy link
Owner

No more duplicate timers running every minute. Fixed database initialization timing and screen time calculation on cases where there was "screen on" session going through midnight.

If the current session was started before midnight, the screen on
time for today could have been longer than what time had passed.
Added efficiency by using Singleton to hold screen on data for
labels. Got rid off separate timer in CoverPage.
Earlier sessions over midnight were not taken into account in
daily or average screen time calculations.
@miikasda miikasda merged commit f300f6b into main Jan 26, 2024
@miikasda miikasda deleted the single-timer branch January 26, 2024 22:49
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.

None yet

1 participant