]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/charts/Charter.java
Version 18.1, September 2015
[GpsPrune.git] / tim / prune / function / charts / Charter.java
index ef3cc955f61f260f6ce3ed724424631d6a2c7a53..5b7ae83c29470ae7fa51306446554c10514405d2 100644 (file)
@@ -485,7 +485,7 @@ public class Charter extends GenericFunction
                        if (currPoint.hasTimestamp())
                        {
                                if (!currPoint.getSegmentStart() && prevTimestamp != null) {
                        if (currPoint.hasTimestamp())
                        {
                                if (!currPoint.getSegmentStart() && prevTimestamp != null) {
-                                       seconds += (currPoint.getTimestamp().getSecondsSince(prevTimestamp));
+                                       seconds += (currPoint.getTimestamp().getMillisecondsSince(prevTimestamp) / 1000.0);
                                }
                                values.setData(i, seconds / 60.0 / 60.0);
                                prevTimestamp = currPoint.getTimestamp();
                                }
                                values.setData(i, seconds / 60.0 / 60.0);
                                prevTimestamp = currPoint.getTimestamp();