aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-08-23 08:48:20 +0500
committerAbyss777 <abyss@fox5.ru>2018-08-23 08:48:20 +0500
commit12bb168b88fc3dbcdf59c2fec1a919e20ab57838 (patch)
treee66c633881d6befb4b1415f2a190c7941343a905 /src/org/traccar/helper
parent2a386eab0a4baed5c606113dd9a875a088f9f4e5 (diff)
downloadtrackermap-server-12bb168b88fc3dbcdf59c2fec1a919e20ab57838.tar.gz
trackermap-server-12bb168b88fc3dbcdf59c2fec1a919e20ab57838.tar.bz2
trackermap-server-12bb168b88fc3dbcdf59c2fec1a919e20ab57838.zip
Implement Device Engine Hours reset
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/LogAction.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/helper/LogAction.java b/src/org/traccar/helper/LogAction.java
index d2c7ef5c1..2f575537d 100644
--- a/src/org/traccar/helper/LogAction.java
+++ b/src/org/traccar/helper/LogAction.java
@@ -35,12 +35,12 @@ public final class LogAction {
private static final String ACTION_LOGIN = "login";
private static final String ACTION_LOGOUT = "logout";
- private static final String ACTION_TOTAL_DISTANCE = "resetTotalDistance";
+ private static final String ACTION_DEVICE_ACCUMULATORS = "resetDeviceAccumulators";
private static final String PATTERN_OBJECT = "user: %d, action: %s, object: %s, id: %d";
private static final String PATTERN_LINK = "user: %d, action: %s, owner: %s, id: %d, property: %s, id: %d";
private static final String PATTERN_LOGIN = "user: %d, action: %s";
- private static final String PATTERN_TOTAL_DISTANCE = "user: %d, action: %s, deviceId: %d";
+ private static final String PATTERN_DEVICE_ACCUMULATORS = "user: %d, action: %s, deviceId: %d";
public static void create(long userId, BaseModel object) {
logObjectAction(ACTION_CREATE, userId, object.getClass(), object.getId());
@@ -70,8 +70,8 @@ public final class LogAction {
logLoginAction(ACTION_LOGOUT, userId);
}
- public static void resetTotalDistance(long userId, long deviceId) {
- log(String.format(PATTERN_TOTAL_DISTANCE, userId, ACTION_TOTAL_DISTANCE, deviceId));
+ public static void resetDeviceAccumulators(long userId, long deviceId) {
+ log(String.format(PATTERN_DEVICE_ACCUMULATORS, userId, ACTION_DEVICE_ACCUMULATORS, deviceId));
}
private static void logObjectAction(String action, long userId, Class<?> clazz, long objectId) {