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

Storing times of each recorded interval #91

Open
AntonBogun opened this issue Apr 12, 2022 · 1 comment
Open

Storing times of each recorded interval #91

AntonBogun opened this issue Apr 12, 2022 · 1 comment

Comments

@AntonBogun
Copy link

Would it theoretically be possible to make procrastitracker save individual day files with information for the time of each recorded 5-second interval? From my calculations, using RLE and 16bit numbers to store IDs of a given window this could be quite realistic and wouldn't use excessive amounts of memory.

@aardappel
Copy link
Owner

That was originally left out to keep the data compact, yes.

It wouldn't be too hard to add in terms of data. Currently time for one particular app/url/doc is tracker in a list of days, each of which has a total time and a start time. We'd have to change that such that we'd allow multiple such day record per day, so that it can represent multiple sections of usage.

The harder part is changing the code to go along with this, since there is so much code that assumes there's at most 1 record per day.

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

No branches or pull requests

2 participants