summaryrefslogtreecommitdiff
path: root/innobase/os/os0thread.c
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2001-04-04 20:34:54 +0300
committerunknown <heikki@donna.mysql.fi>2001-04-04 20:34:54 +0300
commitf8d1b60744a31afb362823387f611468ba5f1fea (patch)
tree797d2eec160f277178a7e7526cb5ce476c28aca0 /innobase/os/os0thread.c
parente3dee8e0f123c61c0ea48e1bd0310d86f21c6c26 (diff)
downloadmariadb-git-f8d1b60744a31afb362823387f611468ba5f1fea.tar.gz
os0thread.c Fix os_thread_sleep: did not work if over 1000000 microsecs; caused slowness at least on Solaris and FreeBSD
innobase/os/os0thread.c: Fix os_thread_sleep: did not work if over 1000000 microsecs; caused slowness at least on Solaris and FreeBSD
Diffstat (limited to 'innobase/os/os0thread.c')
-rw-r--r--innobase/os/os0thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/innobase/os/os0thread.c b/innobase/os/os0thread.c
index c1519ac58e4..a597af3fc4c 100644
--- a/innobase/os/os0thread.c
+++ b/innobase/os/os0thread.c
@@ -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