aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/clocksync.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-05 12:33:29 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-05 12:33:29 -0500
commit08874b9c91544c012763766c51b6a0c279972140 (patch)
treee4cb80b03b454327e31212cf214926f39fd8916c /klippy/clocksync.py
parent8121a4a29f8940c8f6d0d34b494bdc117303f70e (diff)
downloadkutter-08874b9c91544c012763766c51b6a0c279972140.tar.gz
kutter-08874b9c91544c012763766c51b6a0c279972140.tar.xz
kutter-08874b9c91544c012763766c51b6a0c279972140.zip
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>
Diffstat (limited to 'klippy/clocksync.py')
-rw-r--r--klippy/clocksync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/clocksync.py b/klippy/clocksync.py
index a5ddf619..ce5e42a2 100644
--- a/klippy/clocksync.py
+++ b/klippy/clocksync.py
@@ -7,7 +7,7 @@ import logging, threading, math
COMM_TIMEOUT = 3.5
RTT_AGE = .000010 / (60. * 60.)
-DECAY = 1. / (2. * 60.)
+DECAY = 1. / 30.
TRANSMIT_EXTRA = .001
class ClockSync: