aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-10 10:39:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-10 10:39:42 +1300
commit2263d424eb10a1ac56818ecea575723a3d380705 (patch)
tree7a7914a0c4d998dd522352a432cfd75193d82acd /src/org/traccar
parent6b4c0648c87e67dffcfee97c8e49b6af32050de2 (diff)
downloadtraccar-server-2263d424eb10a1ac56818ecea575723a3d380705.tar.gz
traccar-server-2263d424eb10a1ac56818ecea575723a3d380705.tar.bz2
traccar-server-2263d424eb10a1ac56818ecea575723a3d380705.zip
Fix FindBugs reported warning
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/OigoProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/OigoProtocolDecoder.java b/src/org/traccar/protocol/OigoProtocolDecoder.java
index 90588a628..9e6a9a82e 100644
--- a/src/org/traccar/protocol/OigoProtocolDecoder.java
+++ b/src/org/traccar/protocol/OigoProtocolDecoder.java
@@ -155,7 +155,8 @@ public class OigoProtocolDecoder extends BaseProtocolDecoder {
boolean negative = value < 0;
value = Math.abs(value);
double minutes = (value % 100000) * 0.001;
- double degrees = value / 100000 + minutes / 60;
+ value /= 100000;
+ double degrees = value + minutes / 60;
return negative ? -degrees : degrees;
}