cvs commit: src/sys/kern kern_ntptime.c

John Baldwin jhb at FreeBSD.org
Wed Jun 25 14:46:46 PDT 2003


On 25-Jun-2003 Warner Losh wrote:
> imp         2003/06/25 13:56:40 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             kern_ntptime.c 
>   Log:
>   During a positive leap second, the tai_time offset should be
>   incremented at the start of the leap second, not after the leap second
>   has been inserted.  This is because at the start of the leap second,
>   we set the time back one second.  This setting back one second is the
>   moment that the offset changes.  The old code set it back after the
>   leap second, but that's one second too late.  The negative leap second
>   case is handled correctly.

After all this head spinning I think I'm going to get sick... :-P

-- 

John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


More information about the cvs-src mailing list