Use corrected system time internally, adjust old offsets after
[dragonfly.git] / usr.sbin / ntpd / patches / server.c.patch
1 $DragonFly: src/usr.sbin/ntpd/patches/Attic/server.c.patch,v 1.3 2005/04/14 10:31:27 joerg Exp $
2
3 --- server.c    25 Feb 2005 16:43:19 -0000      1.4
4 +++ server.c    12 Apr 2005 20:13:45 -0000
5 @@ -120,7 +120,7 @@
6                         fatal("recvfrom");
7         }
8  
9 -       rectime = gettime();
10 +       rectime = gettime_corrected();
11  
12         if (ntp_getmsg(buf, size, &query) == -1)
13                 return (0);
14 @@ -139,7 +139,7 @@
15         reply.precision = conf->status.precision;
16         reply.rectime = d_to_lfp(rectime);
17         reply.reftime = d_to_lfp(conf->status.reftime);
18 -       reply.xmttime = d_to_lfp(gettime());
19 +       reply.xmttime = d_to_lfp(gettime_corrected());
20         reply.orgtime = query.xmttime;
21         reply.rootdelay = d_to_sfp(conf->status.rootdelay);
22