Skip to content

Commit

Permalink
Fix: Duration below 1s (hannibal002#2261)
Browse files Browse the repository at this point in the history
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
  • Loading branch information
hannibal002 and hannibal002 authored Jul 28, 2024
1 parent 6da505a commit 85804cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 85804cc

Please sign in to comment.