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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -139,8 +139,8 @@ os_thread_sleep(
#else
	struct timeval	t;

	t.tv_sec = 0;
	t.tv_usec = tm;
	t.tv_sec = tm / 1000000;
	t.tv_usec = tm % 1000000;
	
	select(0, NULL, NULL, NULL, &t);
#endif