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

Fix sleep call for compatibility #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pallas1
Copy link

@pallas1 pallas1 commented Aug 29, 2018

No description provided.

@sp-hash
Copy link
Owner

sp-hash commented Aug 29, 2018

already fixed in another commit

@pallas1
Copy link
Author

pallas1 commented Aug 29, 2018

but it's still there, so please merge

@sp-hash
Copy link
Owner

sp-hash commented Aug 29, 2018

sleep(1) will sleep for 1 second. usleep will sleep for 1ms. We don't want to sleep so much

@pallas1
Copy link
Author

pallas1 commented Aug 29, 2018

then usleep(1000) (it's microseconds, not milliseconds)

@sp-hash
Copy link
Owner

sp-hash commented Aug 29, 2018

usleep(1) seems to be working good on the pool

@pallas1
Copy link
Author

pallas1 commented Aug 29, 2018

do what you want, but remove Sleep() as it is windows-only ;-)

@88plug
Copy link

88plug commented Sep 1, 2018

sed -i -e 's/Sleep(1)/usleep(1000)/g' ccminer.cpp
Does the trick for now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants