This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
cyg_ticks_to_timespec()
- To: <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] cyg_ticks_to_timespec()
- From: "Boris V. Guzhov" <borg at int dot spb dot ru>
- Date: Wed, 18 Apr 2001 11:54:24 +0400
Hi,
I use elix ecos configuration. In the
packages/compat/posix/current/src/time.cxx file
there is a cyg_ticks_to_timespec() function. I think that in the function
there is a bug.
For example: for ticks=454 the function should calculate tv_sec=4
tv_nsec=0.54e9,
but it calculate tv_sec=5 tv_nsec=3834967296.
Thanks in advance.
--
Boris Guzhov,
St.Petersburg, Russia