diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-13 05:55:11 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-13 05:55:11 +0300 |
commit | 56b53725196eec2da88a567a71de04a3e8e103b6 (patch) | |
tree | 07a1141ec61e7a4600e9efa889548f341c2b0498 /winsup/cygwin/times.cc | |
parent | d090ee8081cd382c495d3ffffda6190d4f3aa5bf (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.cc | 2 |
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 (); |