aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/reports/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/reports/model')
-rw-r--r--src/org/traccar/reports/model/BaseReport.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/reports/model/BaseReport.java b/src/org/traccar/reports/model/BaseReport.java
index 8c5807c9b..246cdede0 100644
--- a/src/org/traccar/reports/model/BaseReport.java
+++ b/src/org/traccar/reports/model/BaseReport.java
@@ -16,9 +16,6 @@
*/
package org.traccar.reports.model;
-import java.math.BigDecimal;
-import java.math.RoundingMode;
-
public class BaseReport {
private long deviceId;
@@ -54,7 +51,7 @@ public class BaseReport {
return averageSpeed;
}
public void setAverageSpeed(Double averageSpeed) {
- this.averageSpeed = new BigDecimal(averageSpeed.toString()).setScale(3, RoundingMode.HALF_EVEN).doubleValue();
+ this.averageSpeed = averageSpeed;
}
private double maxSpeed; // knots