summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/ntpdate/ntpdate.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/ntpdate/ntpdate.h')
-rw-r--r--usr.sbin/xntpd/ntpdate/ntpdate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/ntpdate/ntpdate.h b/usr.sbin/xntpd/ntpdate/ntpdate.h
index 4a8ff74..f6d3ebf 100644
--- a/usr.sbin/xntpd/ntpdate/ntpdate.h
+++ b/usr.sbin/xntpd/ntpdate/ntpdate.h
@@ -54,7 +54,11 @@ struct server {
* are close, or step the time if the times are farther apart. The
* following defines what is "close".
*/
+#ifdef linux
+#define NTPDATE_THRESHOLD (FP_SECOND / 8) /* 1/8 second */
+#else
#define NTPDATE_THRESHOLD (FP_SECOND >> 1) /* 1/2 second */
+#endif
/*
* When doing adjustments, ntpdate actually overadjusts (currently
OpenPOWER on IntegriCloud