diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index d5313bc5b..50c426364 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,7 @@ +2009-07-18 Jeff Lu + + * mingwex/usleep.c: round up to next ms + 2009-07-17 Chris Sutcliffe * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c diff --git a/winsup/mingw/mingwex/usleep.c b/winsup/mingw/mingwex/usleep.c index b322a7703..c059c0691 100755 --- a/winsup/mingw/mingwex/usleep.c +++ b/winsup/mingw/mingwex/usleep.c @@ -34,7 +34,7 @@ int __cdecl usleep(useconds_t useconds) if(useconds >= 1000000) return EINVAL; - Sleep(useconds / 1000); + Sleep((useconds + 999) / 1000); return 0; }