From owner-cvs-all@FreeBSD.ORG Wed Jun 25 13:56:41 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8853F37B401; Wed, 25 Jun 2003 13:56:41 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24DC844003; Wed, 25 Jun 2003 13:56:41 -0700 (PDT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5PKue0U034844; Wed, 25 Jun 2003 13:56:40 -0700 (PDT) (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5PKuelT034843; Wed, 25 Jun 2003 13:56:40 -0700 (PDT) Message-Id: <200306252056.h5PKuelT034843@repoman.freebsd.org> From: Warner Losh Date: Wed, 25 Jun 2003 13:56:40 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_ntptime.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2003 20:56:41 -0000 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. Reviewed by: phk Revision Changes Path 1.52 +1 -1 src/sys/kern/kern_ntptime.c