suprminer icon indicating copy to clipboard operation
suprminer copied to clipboard

Fix sleep call for compatibility

Open pallas1 opened this issue 6 years ago • 7 comments

pallas1 avatar Aug 29 '18 12:08 pallas1

already fixed in another commit

sp-hash avatar Aug 29 '18 16:08 sp-hash

but it's still there, so please merge

pallas1 avatar Aug 29 '18 17:08 pallas1

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

sp-hash avatar Aug 29 '18 17:08 sp-hash

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

pallas1 avatar Aug 29 '18 17:08 pallas1

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

sp-hash avatar Aug 29 '18 17:08 sp-hash

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

pallas1 avatar Aug 29 '18 17:08 pallas1

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

88plug avatar Sep 01 '18 02:09 88plug