diff options
author | r <r@freesoftwareextremist.com> | 2019-12-20 18:31:55 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-20 18:31:55 +0000 |
commit | 3280af21ed1a82aa2b964ae098596b2f13a5fc22 (patch) | |
tree | 426acae29ee51ceaec4790d3ff5e39a2f090d8ff /renderer | |
parent | a1f49af1d93bccdd56d4538b149884418bd2ca2c (diff) | |
download | bloat-3280af21ed1a82aa2b964ae098596b2f13a5fc22.tar.gz bloat-3280af21ed1a82aa2b964ae098596b2f13a5fc22.zip |
Fix TimeSince calculation
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/renderer.go | 2 |
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" } |