Merge pull request #4194 from ejohnstown/to-fix

Timeout Fix
This commit is contained in:
JacobBarthelmeh
2021-07-08 14:34:42 +07:00
committed by GitHub

View File

@ -163,7 +163,7 @@
#define SNPRINTF snprintf
#define XSELECT_WAIT(x,y) do { \
struct timeval tv = {(x),(y)}; \
struct timeval tv = {((x) + ((y) / 1000000)),((y) % 1000000)}; \
select(0, NULL, NULL, NULL, &tv); \
} while (0)
#define XSLEEP_US(u) XSELECT_WAIT(0,u)