aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-05-29 17:44:01 +0500
committerAbyss777 <abyss@fox5.ru>2018-05-29 17:45:48 +0500
commit0e9f1f9bd0df2bc6771f3f5819eb6dbe8c3ce191 (patch)
tree7701691c0e9669cdffcce3bd511edf850f8dc41e /src/org/traccar/helper
parentc71701136245a63ea82a8a595dd51cc011ab2c35 (diff)
downloadtrackermap-server-0e9f1f9bd0df2bc6771f3f5819eb6dbe8c3ce191.tar.gz
trackermap-server-0e9f1f9bd0df2bc6771f3f5819eb6dbe8c3ce191.tar.bz2
trackermap-server-0e9f1f9bd0df2bc6771f3f5819eb6dbe8c3ce191.zip
Make function name shorter
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/UnitsConverter.java4
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);
}