Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-13 05:55:11 +0300
committerChristopher Faylor <me@cgf.cx>2005-12-13 05:55:11 +0300
commit56b53725196eec2da88a567a71de04a3e8e103b6 (patch)
tree07a1141ec61e7a4600e9efa889548f341c2b0498
parentd090ee8081cd382c495d3ffffda6190d4f3aa5bf (diff)
* times.cc (hires_ms::usecs): Subtract from slop from system time or we'll
always end up priming the pump.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/times.cc2
2 files changed, 6 insertions, 1 deletions
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 <cgf@timesys.com>
+
+ * 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 <nick@duffek.com>
* 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 ();