aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-20 18:31:55 +0000
committerr <r@freesoftwareextremist.com>2019-12-20 18:31:55 +0000
commit3280af21ed1a82aa2b964ae098596b2f13a5fc22 (patch)
tree426acae29ee51ceaec4790d3ff5e39a2f090d8ff
parenta1f49af1d93bccdd56d4538b149884418bd2ca2c (diff)
downloadbloat-3280af21ed1a82aa2b964ae098596b2f13a5fc22.tar.gz
bloat-3280af21ed1a82aa2b964ae098596b2f13a5fc22.zip
Fix TimeSince calculation
-rw-r--r--renderer/renderer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/renderer/renderer.go b/renderer/renderer.go
index 890006b..3eb0457 100644
--- a/renderer/renderer.go
+++ b/renderer/renderer.go
@@ -113,7 +113,7 @@ func TimeSince(t time.Time) string {
return strconv.Itoa(int(mo)) + "mo"
}
- y := m / 12
+ y := mo / 12
return strconv.Itoa(int(y)) + "y"
}