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

Small bug (?) in performance/wss_multicast_server.cpp #30

Closed
KaiPetzke opened this issue Sep 16, 2020 · 1 comment
Closed

Small bug (?) in performance/wss_multicast_server.cpp #30

KaiPetzke opened this issue Sep 16, 2020 · 1 comment

Comments

@KaiPetzke
Copy link

In the benchmark example performance/wss_multicast_server.cpp , there is the following code:

            // Sleep for remaining time or yield
            auto milliseconds = (end - start).milliseconds();
            if (milliseconds < 1000)
                Thread::Sleep(milliseconds);
            else
                Thread::Yield();

From the comment above this code block, I conclude, that the call to Thread::Sleep is probably supposed to read:

                Thread::Sleep(1000 - milliseconds);
@chronoxor
Copy link
Owner

Fixed! Thanks a lot for reporting the issue.

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

2 participants