diff options
Diffstat (limited to 'mysys/my_sleep.c')
-rw-r--r-- | mysys/my_sleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_sleep.c b/mysys/my_sleep.c index 87170e4af41..cb21c15a925 100644 --- a/mysys/my_sleep.c +++ b/mysys/my_sleep.c @@ -30,7 +30,7 @@ void my_sleep(ulong m_seconds) t.tv_usec= m_seconds % 1000000L; select(0,0,0,0,&t); /* sleep */ #else - uint sec= (uint) (m_seconds / 1000000L); + uint sec= (uint) ((m_seconds + 999999L) / 1000000L); ulong start= (ulong) time((time_t*) 0); while ((ulong) time((time_t*) 0) < start+sec); #endif |