UnitConversation: always use double for division.

Fixed wrong computation (00:00) of total time.
This commit is contained in:
Dennis Guse
2019-09-19 19:29:12 +02:00
parent 5752cebdec
commit f21200a7ec
2 changed files with 2 additions and 4 deletions
@@ -29,7 +29,7 @@ public class UnitConversions {
// 1 second in milliseconds
public static final long ONE_SECOND = UnitConversions.S_TO_MS;
// multiplication factor to convert milliseconds to seconds
public static final double MS_TO_S = 1 / S_TO_MS;
public static final double MS_TO_S = 1d / S_TO_MS;
// multiplication factor to convert minutes to seconds
public static final double MIN_TO_S = 60.0;
// multiplication factor to convert seconds to minutes