aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-13 23:33:21 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-13 23:33:21 -0700
commitc9e90e027eef684028e16a894bb2ec362c3db3d9 (patch)
treea059e4f5222b70c437427c6bd133f4b8e20a2f1f /src/main/java/org
parent692a52be1c5b2c1f08d04f5eed1b73b31a9539e0 (diff)
downloadtrackermap-server-c9e90e027eef684028e16a894bb2ec362c3db3d9.tar.gz
trackermap-server-c9e90e027eef684028e16a894bb2ec362c3db3d9.tar.bz2
trackermap-server-c9e90e027eef684028e16a894bb2ec362c3db3d9.zip
Fix error
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/database/StatisticsManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/database/StatisticsManager.java b/src/main/java/org/traccar/database/StatisticsManager.java
index 21b59540e..1ed232850 100644
--- a/src/main/java/org/traccar/database/StatisticsManager.java
+++ b/src/main/java/org/traccar/database/StatisticsManager.java
@@ -88,7 +88,7 @@ public class StatisticsManager {
if (!deviceProtocols.isEmpty()) {
Map<String, Integer> protocols = new HashMap<>();
for (String protocol : deviceProtocols.values()) {
- protocols.compute(protocol, (key, count) -> count != null ? count += 1 : 1);
+ protocols.compute(protocol, (key, count) -> count != null ? count + 1 : 1);
}
statistics.setProtocols(protocols);
}