summaryrefslogtreecommitdiff
path: root/rts/win32
diff options
context:
space:
mode:
Diffstat (limited to 'rts/win32')
-rw-r--r--rts/win32/IOManager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/win32/IOManager.c b/rts/win32/IOManager.c
index 764be69872..6af42456ae 100644
--- a/rts/win32/IOManager.c
+++ b/rts/win32/IOManager.c
@@ -190,7 +190,7 @@ IOWorkerProc(PVOID param)
*
* Note: Sleep() is in milliseconds, not micros.
*/
- Sleep(work->workData.delayData.msecs / 1000);
+ Sleep((work->workData.delayData.msecs + 999) / 1000);
len = work->workData.delayData.msecs;
complData = NULL;
fd = 0;