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

bad sync time delta calculation #42

Open
sspiff opened this issue Jul 23, 2024 · 0 comments
Open

bad sync time delta calculation #42

sspiff opened this issue Jul 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sspiff
Copy link
Owner

sspiff commented Jul 23, 2024

The time delta is calculated incorrectly at

$self->{'syncTime'} = time() - int(substr( $self->{'syncTime'}, 4 ));

because we add our current time to this delta for each request. The order of the operands should be switched here (subtract our time from the service's time).

@sspiff sspiff added the bug Something isn't working label Jul 23, 2024
@sspiff sspiff self-assigned this Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant