aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-28 22:07:40 +0900
committersyeyoung <cyong06@naver.com>2021-02-28 22:07:40 +0900
commitd791b14ccc4b6e0c88b52daaf2975a4413f525df (patch)
treea66e23204de966b75e5918e7df023d7ae40a2139 /src/main/java/kr/syeyoung/dungeonsguide
parentcf903cf649f7983f6b8c3b9be687c607335c25ba (diff)
downloadSkyblock-Dungeons-Guide-d791b14ccc4b6e0c88b52daaf2975a4413f525df.tar.gz
Skyblock-Dungeons-Guide-d791b14ccc4b6e0c88b52daaf2975a4413f525df.tar.bz2
Skyblock-Dungeons-Guide-d791b14ccc4b6e0c88b52daaf2975a4413f525df.zip
better timer
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/utils/TextUtils.java2
1 files changed, 1 insertions, 1 deletions
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;