Skip to content

Commit

Permalink
busybox: ntpd: increase SLEW_THRESHOLD from 0.125 to 0.5 (backport)
Browse files Browse the repository at this point in the history
Original commit: 8502fa8747e962f69084be09ff8b930e0fb0c449
  • Loading branch information
Denys Vlasenko authored and RMerl committed May 13, 2019
1 parent 0faeab4 commit 2a95dd4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions release/src/router/busybox/networking/ntpd.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -138,13 +138,11 @@
*/ */
#define STEP_THRESHOLD 1 #define STEP_THRESHOLD 1
/* Slew threshold (sec): adjtimex() won't accept offsets larger than this. /* Slew threshold (sec): adjtimex() won't accept offsets larger than this.
* Using exact power of 2 (1/8) results in smaller code * Using exact power of 2 (1/8, 1/2 etc) results in smaller code
*/ */
#define SLEW_THRESHOLD 0.25 #define SLEW_THRESHOLD 0.5
/* Stepout threshold (sec). std ntpd uses 900 (11 mins (!)) */ // ^^^^ used to be 0.125.
//^^^^^^^^^^^^^^^^^^^^^^^^^^ TODO: man adjtimex about tmx.offset: // Since Linux 2.6.26 (circa 2006), kernel accepts (-0.5s, +0.5s) range
// "Since Linux 2.6.26, the supplied value is clamped to the range (-0.5s, +0.5s)"
// - can use this larger value instead?


/* Stepout threshold (sec). std ntpd uses 900 (11 mins (!)) */ /* Stepout threshold (sec). std ntpd uses 900 (11 mins (!)) */
//UNUSED: #define WATCH_THRESHOLD 128 //UNUSED: #define WATCH_THRESHOLD 128
Expand Down

0 comments on commit 2a95dd4

Please sign in to comment.