diff options
author | Anton Tananaev <anton@traccar.org> | 2023-06-17 07:00:57 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-06-17 07:01:04 -0700 |
commit | 8ee2199cff0596790111e5ead43ec3da29a440dc (patch) | |
tree | 3174c483b50ac7098bc3bf29d45a038135b823d2 /src/main | |
parent | 2d66dabcf54eb37bafe68f464f386f13a8f1cab6 (diff) | |
download | trackermap-server-8ee2199cff0596790111e5ead43ec3da29a440dc.tar.gz trackermap-server-8ee2199cff0596790111e5ead43ec3da29a440dc.tar.bz2 trackermap-server-8ee2199cff0596790111e5ead43ec3da29a440dc.zip |
Do not count service account
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/database/StatisticsManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/database/StatisticsManager.java b/src/main/java/org/traccar/database/StatisticsManager.java index e0995dabc..c8a36bf78 100644 --- a/src/main/java/org/traccar/database/StatisticsManager.java +++ b/src/main/java/org/traccar/database/StatisticsManager.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.traccar.api.security.ServiceAccountUser; import org.traccar.config.Config; import org.traccar.config.Keys; import org.traccar.helper.DateUtil; @@ -147,7 +148,7 @@ public class StatisticsManager { public synchronized void registerRequest(long userId) { checkSplit(); requests += 1; - if (userId != 0) { + if (userId != 0 && userId != ServiceAccountUser.ID) { users.add(userId); } } |