clocksync: Respond faster to clock changes

Average clock sync times over approximately 30 seconds instead of 120
seconds so that the clock prediction responds to changes faster.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-02-05 12:33:29 -05:00
parent 8121a4a29f
commit 08874b9c91
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import logging, threading, math
COMM_TIMEOUT = 3.5 COMM_TIMEOUT = 3.5
RTT_AGE = .000010 / (60. * 60.) RTT_AGE = .000010 / (60. * 60.)
DECAY = 1. / (2. * 60.) DECAY = 1. / 30.
TRANSMIT_EXTRA = .001 TRANSMIT_EXTRA = .001
class ClockSync: class ClockSync: