2009-07-18 Jeff Lu <jll544@yahoo.com>

* mingwex/usleep.c: round up to next ms
This commit is contained in:
Chris Sutcliffe 2009-07-18 14:41:23 +00:00
parent b5fb6b0dc3
commit 52e4653d43
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-07-18 Jeff Lu <jll544@yahoo.com>
* mingwex/usleep.c: round up to next ms
2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c

View File

@ -34,7 +34,7 @@ int __cdecl usleep(useconds_t useconds)
if(useconds >= 1000000)
return EINVAL;
Sleep(useconds / 1000);
Sleep((useconds + 999) / 1000);
return 0;
}