diff options
Diffstat (limited to 'src/org/traccar/helper/UnitsConverter.java')
-rw-r--r-- | src/org/traccar/helper/UnitsConverter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/helper/UnitsConverter.java b/src/org/traccar/helper/UnitsConverter.java index 7519879c0..74f5a90e6 100644 --- a/src/org/traccar/helper/UnitsConverter.java +++ b/src/org/traccar/helper/UnitsConverter.java @@ -72,11 +72,11 @@ public final class UnitsConverter { return value * METERS_TO_MILE_RATIO; } - public static long millisecondsFromHours(int value) { + public static long msFromHours(long value) { return value * MILLISECONDS_TO_HOURS_RATIO; } - public static long millisecondsFromHours(double value) { + public static long msFromHours(double value) { return (long) (value * MILLISECONDS_TO_HOURS_RATIO); } |