aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--renderer/renderer.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/renderer/renderer.go b/renderer/renderer.go
index 560e9b7..a5619c2 100644
--- a/renderer/renderer.go
+++ b/renderer/renderer.go
@@ -80,19 +80,19 @@ func DurToStr(dur time.Duration) string {
return strconv.Itoa(int(s)) + "s"
}
m := dur.Minutes()
- if m < 60 {
+ if m < 60*2 {
return strconv.Itoa(int(m)) + "m"
}
h := dur.Hours()
- if h < 24 {
+ if h < 24*2 {
return strconv.Itoa(int(h)) + "h"
}
d := h / 24
- if d < 30 {
+ if d < 30*2 {
return strconv.Itoa(int(d)) + "d"
}
mo := d / 30
- if mo < 12 {
+ if mo < 12*2 {
return strconv.Itoa(int(mo)) + "mo"
}
y := mo / 12