aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/reports/Summary.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-17 17:18:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-17 17:18:07 +1200
commit136a302846ad340f6babaa5f0f35018d867f73e8 (patch)
treeab3fb3c575a98e75f9a1d0a7d9a08c32358844b2 /src/org/traccar/reports/Summary.java
parent57941c8095839951caf868368963ba13e8fc3da3 (diff)
downloadtrackermap-server-136a302846ad340f6babaa5f0f35018d867f73e8.tar.gz
trackermap-server-136a302846ad340f6babaa5f0f35018d867f73e8.tar.bz2
trackermap-server-136a302846ad340f6babaa5f0f35018d867f73e8.zip
Add spent fuel to summary report
Diffstat (limited to 'src/org/traccar/reports/Summary.java')
-rw-r--r--src/org/traccar/reports/Summary.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/reports/Summary.java b/src/org/traccar/reports/Summary.java
index abe0277da..5aaf33fae 100644
--- a/src/org/traccar/reports/Summary.java
+++ b/src/org/traccar/reports/Summary.java
@@ -61,6 +61,7 @@ public final class Summary {
.lookupAttributeBoolean(deviceId, "report.ignoreOdometer", false, true);
result.setDistance(ReportUtils.calculateDistance(firstPosition, previousPosition, !ignoreOdometer));
result.setAverageSpeed(speedSum / positions.size());
+ result.setSpentFuel(ReportUtils.calculateFuel(firstPosition, previousPosition));
}
return result;
}