aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-05-30 09:19:03 +0500
committerAbyss777 <abyss@fox5.ru>2018-05-30 09:19:03 +0500
commit9c2830b50b667b188c844102dd9ed91fd487d386 (patch)
treed4a0cd8eb777c06dd1424e8cf955f8c07ad1f43f /src/org/traccar/protocol
parent0e9f1f9bd0df2bc6771f3f5819eb6dbe8c3ce191 (diff)
downloadtrackermap-server-9c2830b50b667b188c844102dd9ed91fd487d386.tar.gz
trackermap-server-9c2830b50b667b188c844102dd9ed91fd487d386.tar.bz2
trackermap-server-9c2830b50b667b188c844102dd9ed91fd487d386.zip
Add converter from minutes to milliseconds
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/MxtProtocolDecoder.java2
-rw-r--r--src/org/traccar/protocol/SuntechProtocolDecoder.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MxtProtocolDecoder.java b/src/org/traccar/protocol/MxtProtocolDecoder.java
index d9dcd9e93..a97ae380d 100644
--- a/src/org/traccar/protocol/MxtProtocolDecoder.java
+++ b/src/org/traccar/protocol/MxtProtocolDecoder.java
@@ -145,7 +145,7 @@ public class MxtProtocolDecoder extends BaseProtocolDecoder {
}
if (BitUtil.check(infoGroups, 4)) {
- position.set(Position.KEY_HOURS, buf.readUnsignedInt() * 60000);
+ position.set(Position.KEY_HOURS, UnitsConverter.msFromMinutes(buf.readUnsignedInt()));
}
if (BitUtil.check(infoGroups, 5)) {
diff --git a/src/org/traccar/protocol/SuntechProtocolDecoder.java b/src/org/traccar/protocol/SuntechProtocolDecoder.java
index c6b755770..efaf19b93 100644
--- a/src/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -239,7 +239,7 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
if (hbm) {
if (index < values.length) {
- position.set(Position.KEY_HOURS, Integer.parseInt(values[index++]) * 60000);
+ position.set(Position.KEY_HOURS, UnitsConverter.msFromMinutes(Integer.parseInt(values[index++])));
}
if (index < values.length) {