aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/ContinentalProtocolDecoder.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-05-29 17:03:15 +0500
committerAbyss777 <abyss@fox5.ru>2018-05-29 17:03:15 +0500
commitc71701136245a63ea82a8a595dd51cc011ab2c35 (patch)
tree50f7daaa7addb539121f0309f779a14299b03438 /src/org/traccar/protocol/ContinentalProtocolDecoder.java
parentb41af1b39cdaa511dbf53769342ebca5b0348931 (diff)
downloadtrackermap-server-c71701136245a63ea82a8a595dd51cc011ab2c35.tar.gz
trackermap-server-c71701136245a63ea82a8a595dd51cc011ab2c35.tar.bz2
trackermap-server-c71701136245a63ea82a8a595dd51cc011ab2c35.zip
Add units converter helper
Diffstat (limited to 'src/org/traccar/protocol/ContinentalProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/ContinentalProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/ContinentalProtocolDecoder.java b/src/org/traccar/protocol/ContinentalProtocolDecoder.java
index 780a23b72..186b2235e 100644
--- a/src/org/traccar/protocol/ContinentalProtocolDecoder.java
+++ b/src/org/traccar/protocol/ContinentalProtocolDecoder.java
@@ -94,7 +94,7 @@ public class ContinentalProtocolDecoder extends BaseProtocolDecoder {
}
if (buf.readableBytes() > 4) {
- position.set(Position.KEY_HOURS, buf.readUnsignedInt() * 3600000);
+ position.set(Position.KEY_HOURS, UnitsConverter.millisecondsFromHours(buf.readUnsignedInt()));
}
return position;