awatcher icon indicating copy to clipboard operation
awatcher copied to clipboard

aw-awatcher-window has gaps which amount to 30 minutes per day

Open sulai opened this issue 1 year ago • 4 comments

First of all, thanks @2e3s for the great work!

Image

These gaps (1-3 seconds) amount to an error of about 30 minutes per day, depending on session duration and window switches. It makes it hard to track accurate times. If you set poll-time-window-seconds to higher values, the error per day quickly is in the range of hours.

Ideally, an event would never have length 0. For example, if poll-time-window-seconds=10 and we discover a window for just one heart beat, the event length should be 10s.

Thank you for considering a fix 😄

sulai avatar Feb 24 '25 18:02 sulai

Hello, thank you for your report. As I see, it's a 1 second gap, I agree this needs to be improved.

2e3s avatar Feb 27 '25 15:02 2e3s

Thank you for your positive reply. Allow me to add some details:

If you switch windows fast, like in 1s interval, the gap can be larger (multiple 0-length events). When poll-time-window-seconds=10, the gap would be 10s.

sulai avatar Feb 28 '25 09:02 sulai

This line says that flooding is for removing small gaps, so the fix seems to be there, but maybe it's not used for that or isn't working correctly.

Anyway, at this link I shared a script for fixing those gaps. It works for me.

wojnilowicz avatar Apr 13 '25 17:04 wojnilowicz

I was seing the same behavior since some month and updates of Gnome. I check and a previous similar behavior was fixed here https://github.com/2e3s/awatcher/pull/2

hugocarnide avatar Jul 09 '25 08:07 hugocarnide