diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-02-15 14:32:08 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-02-15 14:32:08 +0100 |
commit | 8502fa8747e962f69084be09ff8b930e0fb0c449 (patch) | |
tree | 7157e3cad73c2f562c6797e816af429733495a8c | |
parent | d712edc6d8f904a4e9d2e26fc9e8a4c45a2cf0b0 (diff) | |
download | busybox-w32-8502fa8747e962f69084be09ff8b930e0fb0c449.tar.gz busybox-w32-8502fa8747e962f69084be09ff8b930e0fb0c449.tar.bz2 busybox-w32-8502fa8747e962f69084be09ff8b930e0fb0c449.zip |
ntpd: increase SLEW_THRESHOLD from 0.125 to 0.5
Linux kernel supports it since ~2006
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ntpd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 855815ece..0f474bc09 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -177,12 +177,11 @@ | |||
177 | */ | 177 | */ |
178 | #define STEP_THRESHOLD 1 | 178 | #define STEP_THRESHOLD 1 |
179 | /* Slew threshold (sec): adjtimex() won't accept offsets larger than this. | 179 | /* Slew threshold (sec): adjtimex() won't accept offsets larger than this. |
180 | * Using exact power of 2 (1/8) results in smaller code | 180 | * Using exact power of 2 (1/8, 1/2 etc) results in smaller code |
181 | */ | 181 | */ |
182 | #define SLEW_THRESHOLD 0.125 | 182 | #define SLEW_THRESHOLD 0.5 |
183 | //^^^^^^^^^^^^^^^^^^^^^^^^^^ TODO: man adjtimex about tmx.offset: | 183 | // ^^^^ used to be 0.125. |
184 | // "Since Linux 2.6.26, the supplied value is clamped to the range (-0.5s, +0.5s)" | 184 | // Since Linux 2.6.26 (circa 2006), kernel accepts (-0.5s, +0.5s) range |
185 | // - can use this larger value instead? | ||
186 | 185 | ||
187 | /* Stepout threshold (sec). std ntpd uses 900 (11 mins (!)) */ | 186 | /* Stepout threshold (sec). std ntpd uses 900 (11 mins (!)) */ |
188 | //UNUSED: #define WATCH_THRESHOLD 128 | 187 | //UNUSED: #define WATCH_THRESHOLD 128 |