-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
[WARNING]: Inserting event that has a older timestamp than previous event! #16
Comments
Hm, odd. It's clear that one event is exactly 1ms earlier than the other one but it is received before it, that should be a programming error. |
This part is likely the cause https://github.com/ActivityWatch/aw-watcher-web/blob/master/app/eventPage.js#L49
Both the closing event and the new event are sent in the right order, but since the requests are asyncronous there's no guarantee which one will be received first from aw-server. |
Then perhaps we should expect this to happen and not throw up Warning messages?
|
We do not want this to happen due to how heartbeats works, the order they are inserted is important. We should fix it in the watcher itself somehow, just have to figure out what's the best way to do it. |
Implemented in ActivityWatch/aw-client-js#7 |
Will be fixed by #19 |
I'm running ActivityWatch from source (latest master repo) and using the Firefox extension.
I keep getting these warnings in the log, why could they be occurring?
The text was updated successfully, but these errors were encountered: