diff options
author | unknown <heikki@donna.mysql.fi> | 2001-04-04 20:34:54 +0300 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-04-04 20:34:54 +0300 |
commit | f8d1b60744a31afb362823387f611468ba5f1fea (patch) | |
tree | 797d2eec160f277178a7e7526cb5ce476c28aca0 | |
parent | e3dee8e0f123c61c0ea48e1bd0310d86f21c6c26 (diff) | |
download | mariadb-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
-rw-r--r-- | innobase/os/os0thread.c | 4 |
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 |