From ca8ac445fedf1ef7604ba0b21f2bca0abe461ef8 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 20 Feb 2007 09:07:16 +0000 Subject: [PATCH] Fix sleep delay for the non-threaded Windows RTS This is the Windows counterpart to "Make the non-threaded-RTS threadDelay wait at least as long as asked" --- rts/win32/IOManager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/win32/IOManager.c b/rts/win32/IOManager.c index 764be69..6af4245 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; -- 1.7.10.4