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 /winsup/cygwin/times.cc
parentd090ee8081cd382c495d3ffffda6190d4f3aa5bf (diff)
* times.cc (hires_ms::usecs): Subtract from slop from system time or we'll
always end up priming the pump.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc2
1 files changed, 1 insertions, 1 deletions
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 ();