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

How durations are calculated? backend source code? #194

Open
DVDAndroid opened this issue Jan 16, 2022 · 1 comment
Open

How durations are calculated? backend source code? #194

DVDAndroid opened this issue Jan 16, 2022 · 1 comment
Assignees

Comments

@DVDAndroid
Copy link

every sent heartbeat has a timestamp. apis return an object with duration
how are durations calculated? what do you sum? how?

can you make open source the backend? @Jannchie
for selfhosted use and i want to understand how durations are calculated

@DVDAndroid DVDAndroid changed the title How durations are calculated? How durations are calculated? backend source code? Jan 16, 2022
@Jannchie
Copy link
Member

Jannchie commented Jan 16, 2022

I'm sorry the backend is not open source at the moment. We are planning to release a self-host version.

@si9ma is responsible for the back end. Heartbeat packets are reported every time the editor operates. If the interval between heartbeat packets is smaller than the threshold, server regards code is written during this period.

I actually have only a vague impression of the back-end implementation and am not sure if it is correct. Maybe @si9ma will answer your questions later.

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

3 participants