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 03:43:46 +0300
committerChristopher Faylor <me@cgf.cx>2005-12-13 03:43:46 +0300
commitc9da5a2183c06038d07b6aa13482392f9054b94c (patch)
treefaa03a6df6c67e7b77654c0e3e1018efbd52c783 /winsup/cygwin/times.cc
parenta300f5fd14bc7d8c89e1350415e53b6ba4f45956 (diff)
* times.cc (hires_ms::usecs): Correct order when checking if high precision
time is <= current time.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 793864a7a..09343c742 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -642,8 +642,9 @@ hires_ms::usecs ()
if (!inited)
prime ();
+ LONGLONG t = systime ();
LONGLONG res = initime_us + (((LONGLONG) timeGetTime ()) * 1000LL);
- if (res <= systime ())
+ if (res <= t)
{
inited = false;
prime ();