From: Adam H. <ad...@te...> - 2004-02-05 01:11:24
|
usec is nanoseconds (1 second = a million nanoseconds) ----- Original Message ----- From: "Michael Van Donselaar" <mv...@va...> To: "Steve Kann" <st...@st...> Cc: <iax...@li...> Sent: Thursday, February 05, 2004 12:06 PM Subject: Re: [Iaxclient-devel] Some data related to the new bug... On Wed, 04 Feb 2004 18:59:25 -0500, Steve Kann <st...@st...> wrote: > >If this only happens on windows, one place I'd look it to make sure the >"gettimeofday" replacement there is correct; it's in winfuncs.c. It's >basically adapted from the earlier hack in libiax "winiphone".. > I see that you have: --8<-------- void gettimeofday(struct timeval *tv, struct timezone *tz) { long l = startuptime + GetTickCount(); tv->tv_sec = l / 1000; tv->tv_usec = (l % 1000) * 1000; return; } --8<-------- shouldn't you have, instead: tv->tv_usec = (l % 1000); ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Iaxclient-devel mailing list Iax...@li... https://lists.sourceforge.net/lists/listinfo/iaxclient-devel |