ccrtp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ccrtp-devel] NTP2Timeval function


From: Federico Montesino Pouzols
Subject: Re: [Ccrtp-devel] NTP2Timeval function
Date: Tue, 19 Apr 2005 17:16:17 +0200
User-agent: Mutt/1.5.8i

Hi, you are right the '+' must be replaced with a '-'. It is fixed in
CVS as well as the other bug related to dlsr, see the next mail...

On Mon, Apr 18, 2005 at 11:37:30PM +0900, Takegami, Takashi wrote:
> sir,
> 
>   Isn't wrong? the function NTP2Timeval(rtcppkt.cpp, L60)
> 
>   NTP timestamp is the passed time from 1900, and Timeval is from 1970.
>   (eg. NTP -> Timeval)
>    in case NTP=100yr,  then Timeval = 100yr-70yr(OFFSET) = 30yr.
> 
>   so, the function NTP2Timeval
>   - t.tv_sec = msw + NTP_EPOCH_OFFSET  (wrong)
>   + t.tv_sec = msw - NTP_EPOCH_OFFSET
> 
>                                                            With regars,
> 
> -- 
> TAKEGAMI
> 
> 
> _______________________________________________
> Ccrtp-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/ccrtp-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]