Use time_t (not long) to save time_second value.
This commit is contained in:
parent
2866ed0d7d
commit
55bc1f1a41
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_ntptime.c,v 1.52 2009/01/11 21:00:11 christos Exp $ */
|
||||
/* $NetBSD: kern_ntptime.c,v 1.53 2010/04/02 23:31:42 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
@ -60,7 +60,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
/* __FBSDID("$FreeBSD: src/sys/kern/kern_ntptime.c,v 1.59 2005/05/28 14:34:41 rwatson Exp $"); */
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_ntptime.c,v 1.52 2009/01/11 21:00:11 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_ntptime.c,v 1.53 2010/04/02 23:31:42 tsutsui Exp $");
|
||||
|
||||
#include "opt_ntp.h"
|
||||
|
||||
@ -180,7 +180,7 @@ static long time_constant; /* poll interval (shift) (s) */
|
||||
static long time_precision = 1; /* clock precision (ns) */
|
||||
static long time_maxerror = MAXPHASE / 1000; /* maximum error (us) */
|
||||
static long time_esterror = MAXPHASE / 1000; /* estimated error (us) */
|
||||
static long time_reftime; /* time at last adjustment (s) */
|
||||
static time_t time_reftime; /* time at last adjustment (s) */
|
||||
static l_fp time_offset; /* time offset (ns) */
|
||||
static l_fp time_freq; /* frequency offset (ns/s) */
|
||||
#endif /* NTP */
|
||||
|
Loading…
Reference in New Issue
Block a user