components/ntp/patches/timing.patch
author Sunil Kumar H G - Oracle Corporation - Bangalore India <sunil.kumar.h.g@oracle.com>
Wed, 27 Mar 2013 13:48:06 -0500
branchs11u1-sru
changeset 2533 3e22216ebd48
parent 172 093198acf7d4
permissions -rw-r--r--
15847852 update zoneinfo timezones to 2012i(Cuba)

--- ntpd/ntp_proto.c.orig	Thu May 14 06:34:42 2009
+++ ntpd/ntp_proto.c	Thu May 14 06:15:13 2009
@@ -1629,6 +1629,16 @@
 	char	*fmri;
 #endif /* HAVE_LIBSCF_H */
 
+#ifdef DEBUG_TIMING
+{
+        char buf[2048];
+
+        snprintf(buf, sizeof(buf), "%lu %lu %d %d epoch",
+                 sys_epoch,peer->epoch,peer->epoch-sys_epoch,current_time - peer->epoch);
+        record_timing_stats(buf);
+}
+#endif
+
 	/*
 	 * Update the system state variables. We do this very carefully,
 	 * as the poll interval might need to be clamped differently.