From 2263d424eb10a1ac56818ecea575723a3d380705 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 10 Dec 2016 10:39:42 +1300 Subject: Fix FindBugs reported warning --- src/org/traccar/protocol/OigoProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') 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; } -- cgit v1.2.3