From c9e90e027eef684028e16a894bb2ec362c3db3d9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 13 Jul 2020 23:33:21 -0700 Subject: Fix error --- src/main/java/org/traccar/database/StatisticsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org') 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 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); } -- cgit v1.2.3