Commit ed2d947b authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi

os0thread.c Fix os_thread_sleep: did not work if over 1000000 microsecs;...

os0thread.c	Fix os_thread_sleep: did not work if over 1000000 microsecs; caused slowness at least on Solaris and FreeBSD
parent e6765fdc
...@@ -139,8 +139,8 @@ os_thread_sleep( ...@@ -139,8 +139,8 @@ os_thread_sleep(
#else #else
struct timeval t; struct timeval t;
t.tv_sec = 0; t.tv_sec = tm / 1000000;
t.tv_usec = tm; t.tv_usec = tm % 1000000;
select(0, NULL, NULL, NULL, &t); select(0, NULL, NULL, NULL, &t);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment