Bug affecting postgres now() function - more info and offer to fix cygwin bug...

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Jul 1 11:37:00 GMT 2004


On Jun 28 23:04, Sean McCune wrote:
> More useful info: (and yes I'm replying to my own message)
> 
> I spelunked through the source code and found this in times.cc:
> 
> LONGLONG
> hires_ms::usecs (bool justdelta)
> {
>   if (!minperiod) /* NO_COPY variable */
>     prime ();
>   DWORD now = timeGetTime ();
>   // FIXME: Not sure how this will handle the 49.71 day wrap around
>   LONGLONG res = initime_us.QuadPart + ((LONGLONG) (now - initime_ms) *
> 1000);
>   return res;
> }

I've checked in a potential fix.  Could you try the latest Cygwin snapshot
from http://cygwin.com/snapshots.html ?

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list