diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6111d7f82..a010a3ab3 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-12-12 Christopher Faylor + + * times.cc (hires_ms::usecs): Subtract from slop from system time or + we'll always end up priming the pump. + 2005-12-12 Nick Duffek * times.cc (systime): Correct precision referenced in comment. diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 482045449..ba387bfd6 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -644,7 +644,7 @@ hires_ms::usecs () LONGLONG t = systime (); LONGLONG res = initime_us + (((LONGLONG) timeGetTime ()) * 1000LL); - if (res < t) + if (res < (t - 40000LL)) { inited = false; prime ();