summaryrefslogtreecommitdiff
path: root/altoslib/AltosReplayReader.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-06-23 22:40:11 -0700
committerKeith Packard <keithp@keithp.com>2015-06-23 22:40:11 -0700
commitc7067f14359d25a8275f2b09e7b30c06c0424dbb (patch)
treefc3038326a5ee239af9792abb6a0250f5306b02d /altoslib/AltosReplayReader.java
parent3e7588e382c70e467b1f328fcfb6bc38a6b79ac7 (diff)
altoslib: Fix replay to run in realtime again
At some point, this got sped up to 10x normal speedx Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosReplayReader.java')
-rw-r--r--altoslib/AltosReplayReader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosReplayReader.java b/altoslib/AltosReplayReader.java
index bcc07587..90072754 100644
--- a/altoslib/AltosReplayReader.java
+++ b/altoslib/AltosReplayReader.java
@@ -40,7 +40,7 @@ public class AltosReplayReader extends AltosFlightReader {
public void update(AltosState state) throws InterruptedException {
/* Make it run in realtime after the rocket leaves the pad */
if (state.state > AltosLib.ao_flight_pad && state.time_change > 0)
- Thread.sleep((int) (Math.min(state.time_change,10) * 100));
+ Thread.sleep((int) (Math.min(state.time_change,10) * 1000));
state.set_received_time(System.currentTimeMillis());
}