From: Keith Packard Date: Sat, 12 Aug 2017 03:39:13 +0000 (-0400) Subject: altoslib: Set time in state for KML output correctly X-Git-Tag: 1.8~8 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=fbe87bd18308cab62eda6d5e956a8618095ed33b;hp=c7b34e6691b632199bc7802c2e4dea4de992578e altoslib: Set time in state for KML output correctly Use new computed state_time value. Signed-off-by: Keith Packard --- 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);