[Bug 1894] missing a tick in _Timespec_To_ticks

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Aug 9 16:24:28 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1894

--- Comment #7 from Gedare <giddyup44 at yahoo.com> 2011-08-09 11:24:28 CDT ---
(In reply to comment #6)
> I'm confused why you add 10000000 in the following line. I also have a hard
> time figuring out what the expected output should be, should it be any number
> greater than 10ms (expressed in ns)?
> 
>     printf("%d: sleep %d ns\n",i,
> (tv.tv_sec-to.tv_sec)*1000000000+tv.tv_usec*1000-to.tv_nsec+10000000);

Can you verify in
posix/src/posixtimespecabsolutetimeout.c:_POSIX_Absolute_timeout_to_ticks that
the abstime is correct/expected, the value of &difference is > 10ms, and what
is the value (and expected value) of ticks_out after conversion?

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list