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

enhancement and counter (instead of time) #47

Open
pas-calc opened this issue Jan 30, 2021 · 0 comments
Open

enhancement and counter (instead of time) #47

pas-calc opened this issue Jan 30, 2021 · 0 comments

Comments

@pas-calc
Copy link

As I understood the total time is calculated by the sum of the number of samples where the condition applied multiplied with the sample rate (what happens when the sample rate changes? only arbtt-capture knows this variable, the other programs do not know it?)

Enhancement: Add the possibility to increment a counter each time the tag changes (or at least within a category), therefore the information about the last tag would be accessible (which is the case in sample dumping only), so in the stage of post-processing.
This would yield the nice opportunity to detect how many times the user switched to e.g. mail when the user was not working with mail before (this is an important indicator for productivity to keep this number low!)

One could write a (bash) script that post processes this data captured already
quick&dirty solution:
arbtt-stats --dump-samples --filter='$date>='`date +"%Y-%m-%d"` | grep "Graph:" | grep -B1 "browsing" | grep -vE 'browsing|^--$' | wc -l
shows how many times I switched to category "browsing" (using grep print line before match)

reference https://bitbucket.org/nomeata/arbtt/issues/69/capture-active-window-changes

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

1 participant