Time active code

Hello, all

I’d like to know which part of ActivityWatch is actually calculating the “Time active” shown in the Activity tab and how does it do, maybe the actual code for that. I am trying to do some external database tests and I found that the Not-AFK data is not “flagged” as Not-AFK. I would need to intersect all data to check which entries are actually Not-AFK.

image

@ErikBjare

Hi all,
I´m also interested in the calculation of the “Time active”, based on bucked data. Any hint is appreciated.