components/ntp/patches/timing.patch
changeset 1467 f14b6c5766ca
parent 1466 24d2be32f88c
child 1468 07b38c2bfed7
equal deleted inserted replaced
1466:24d2be32f88c 1467:f14b6c5766ca
     1 --- ntpd/ntp_proto.c.orig	Thu May 14 06:34:42 2009
       
     2 +++ ntpd/ntp_proto.c	Thu May 14 06:15:13 2009
       
     3 @@ -1629,6 +1629,16 @@
       
     4  	char	*fmri;
       
     5  #endif /* HAVE_LIBSCF_H */
       
     6  
       
     7 +#ifdef DEBUG_TIMING
       
     8 +{
       
     9 +        char buf[2048];
       
    10 +
       
    11 +        snprintf(buf, sizeof(buf), "%lu %lu %d %d epoch",
       
    12 +                 sys_epoch,peer->epoch,peer->epoch-sys_epoch,current_time - peer->epoch);
       
    13 +        record_timing_stats(buf);
       
    14 +}
       
    15 +#endif
       
    16 +
       
    17  	/*
       
    18  	 * Update the system state variables. We do this very carefully,
       
    19  	 * as the poll interval might need to be clamped differently.