From d791b14ccc4b6e0c88b52daaf2975a4413f525df Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 28 Feb 2021 22:07:40 +0900 Subject: better timer --- src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/kr') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java index 6982d6d9..acfc430f 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java @@ -72,7 +72,7 @@ public class TextUtils { } public static String formatTime(long ms) { - long seconds = ms / 1000; + long seconds = (long) Math.ceil(ms / 1000.0); long hr = seconds / (60 * 60); seconds -= hr * 60 * 60; long min = seconds / 60; seconds -= min * 60; -- cgit