aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-07-28 10:35:06 +0200
committerGitHub <noreply@github.com>2024-07-28 10:35:06 +0200
commit85804cca4174f7c00560ee4a91c2dbdab30db6d1 (patch)
tree776b6688abb537fd37fd07ff1cfa2bc4a64e4c14
parent6da505a4c83d43642ecb99c83697d140b9a66ba8 (diff)
downloadskyhanni-85804cca4174f7c00560ee4a91c2dbdab30db6d1.tar.gz
skyhanni-85804cca4174f7c00560ee4a91c2dbdab30db6d1.tar.bz2
skyhanni-85804cca4174f7c00560ee4a91c2dbdab30db6d1.zip
Fix: Duration below 1s (#2261)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
index 104dce34d..dcb6dcc93 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
@@ -16,7 +16,7 @@ object TimeUtils {
fun Duration.format(
biggestUnit: TimeUnit = TimeUnit.YEAR,
- showMilliSeconds: Boolean = false,
+ showMilliSeconds: Boolean = this in -1.seconds..1.seconds,
longName: Boolean = false,
maxUnits: Int = -1,
): String {