diff options
author | Abyss777 <abyss@fox5.ru> | 2016-07-06 16:52:23 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-07-06 16:52:23 +0500 |
commit | f8f21ce131556ca5c1ea44ede496ace9d810c844 (patch) | |
tree | 7a54b2fb6eed19341afd72298909276b33a059da /src/org/traccar/protocol/GranitProtocolDecoder.java | |
parent | 801f9e25448be8a3b27c3b56798525b2fff27633 (diff) | |
download | trackermap-server-f8f21ce131556ca5c1ea44ede496ace9d810c844.tar.gz trackermap-server-f8f21ce131556ca5c1ea44ede496ace9d810c844.tar.bz2 trackermap-server-f8f21ce131556ca5c1ea44ede496ace9d810c844.zip |
More optimizations
Diffstat (limited to 'src/org/traccar/protocol/GranitProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/GranitProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GranitProtocolDecoder.java b/src/org/traccar/protocol/GranitProtocolDecoder.java index c919b3d65..b92bc72e2 100644 --- a/src/org/traccar/protocol/GranitProtocolDecoder.java +++ b/src/org/traccar/protocol/GranitProtocolDecoder.java @@ -81,8 +81,8 @@ public class GranitProtocolDecoder extends BaseProtocolDecoder { int latDegrees = buf.readUnsignedByte(); int lonMinutes = buf.readUnsignedShort(); int latMinutes = buf.readUnsignedShort(); - double latitude = latDegrees + (double) latMinutes / 60000; - double longitude = lonDegrees + (double) lonMinutes / 60000; + double latitude = latDegrees + latMinutes / 60000.0; + double longitude = lonDegrees + lonMinutes / 60000.0; if (!BitUtil.check(flags, 4)) { latitude = -latDegrees; } |