summaryrefslogtreecommitdiff
path: root/altoslib/AltosKML.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-08-11 23:39:13 -0400
committerKeith Packard <keithp@keithp.com>2017-08-11 23:39:13 -0400
commitfbe87bd18308cab62eda6d5e956a8618095ed33b (patch)
tree1ee5681a5065f2fd2db806f03bc83b25bee8e10b /altoslib/AltosKML.java
parentc7b34e6691b632199bc7802c2e4dea4de992578e (diff)
altoslib: Set time in state for KML output correctly
Use new computed state_time value. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosKML.java')
-rw-r--r--altoslib/AltosKML.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosKML.java b/altoslib/AltosKML.java
index 1c025ef4..587b845b 100644
--- a/altoslib/AltosKML.java
+++ b/altoslib/AltosKML.java
@@ -121,7 +121,7 @@ public class AltosKML implements AltosWriter {
String state_color = state_color(state);
out.printf(kml_style_start, state_name, state_color);
out.printf("State: %s\n", state_name);
- out.printf("Time: %6.2f s\n", stats.state_end[state] - stats.state_start[state]);
+ out.printf("Time: %6.2f s\n", stats.state_time[state]);
out.printf("Average speed: %s\n", AltosConvert.speed.show(6, stats.state_speed[state]));
out.printf("Average accel: %s\n", AltosConvert.accel.show(6, stats.state_accel[state]));
out.printf("%s", kml_style_end);