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

us_timer_set uses wrong timings #58

Closed
gotocoffee1 opened this issue Jun 20, 2019 · 0 comments
Closed

us_timer_set uses wrong timings #58

gotocoffee1 opened this issue Jun 20, 2019 · 0 comments
Labels

Comments

@gotocoffee1
Copy link

In the epoll backend the conversion from milliseconds to nanoseconds is wrong. This means that times of less than one second do not work.
Instead it should be something like:

    struct itimerspec timer_spec = {
        {repeat_ms / 1000, repeat_ms * 1000000 % 1000000000},
        {ms / 1000, ms * 1000000 % 1000000000}
    };
@ghost ghost added the bug label Jun 21, 2019
@ghost ghost closed this as completed Jul 21, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant