aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/reports/ReportUtils.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-05-31 10:18:29 +0500
committerAbyss777 <abyss@fox5.ru>2018-05-31 10:18:29 +0500
commit786f101fab6a81007f67e868d381302f4a502d77 (patch)
tree89c06091207e99ae73ff62ecff377847b7960ade /src/org/traccar/reports/ReportUtils.java
parent3d14b6504b01b26e529717b88318be54094b8816 (diff)
downloadtrackermap-server-786f101fab6a81007f67e868d381302f4a502d77.tar.gz
trackermap-server-786f101fab6a81007f67e868d381302f4a502d77.tar.bz2
trackermap-server-786f101fab6a81007f67e868d381302f4a502d77.zip
- Rename switch and variable
- Add temporary comment
Diffstat (limited to 'src/org/traccar/reports/ReportUtils.java')
-rw-r--r--src/org/traccar/reports/ReportUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/reports/ReportUtils.java b/src/org/traccar/reports/ReportUtils.java
index 94cc7664f..ea383d598 100644
--- a/src/org/traccar/reports/ReportUtils.java
+++ b/src/org/traccar/reports/ReportUtils.java
@@ -266,7 +266,8 @@ public final class ReportUtils {
if (startStop.getAttributes().containsKey(Position.KEY_HOURS)
&& endStop.getAttributes().containsKey(Position.KEY_HOURS)) {
engineHours = endStop.getLong(Position.KEY_HOURS) - startStop.getLong(Position.KEY_HOURS);
- } else if (Context.getConfig().getBoolean("engineHours.enable")) {
+ } else if (Context.getConfig().getBoolean("processing.engineHours.enable")) {
+ // Temporary fallback for old data, to be removed in May 2019
for (int i = startIndex + 1; i <= endIndex; i++) {
if (positions.get(i).getBoolean(Position.KEY_IGNITION)
&& positions.get(i - 1).getBoolean(Position.KEY_IGNITION)) {