Skip to content

Commit d73ccdb

Browse files
fix #73; duration not being updated
1 parent d0480ce commit d73ccdb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

js/tracker.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,6 @@ function addPosition(position) {
19111911

19121912
vehicle.curr_position = position;
19131913
graphAddPosition(vcallsign, position);
1914-
19151914
}
19161915
else if(wvar.mode == "Position") { // we don't splice old postions in latest position mode
19171916
return;
@@ -1950,9 +1949,8 @@ function addPosition(position) {
19501949
vehicle.updated = true;
19511950

19521951
// record the start of flight
1953-
var newts = convert_time(vehicle.curr_position.gps_time);
1954-
if(newts < vehicle.start_time) {
1955-
vehicle.start_time = newts;
1952+
if(new_ts < vehicle.start_time) {
1953+
vehicle.start_time = new_ts;
19561954
}
19571955

19581956
// record the highest altitude

0 commit comments

Comments
 (0)