Fix TimeSince calculation
authorr <r@freesoftwareextremist.com>
Fri, 20 Dec 2019 18:31:55 +0000 (18:31 +0000)
committerr <r@freesoftwareextremist.com>
Fri, 20 Dec 2019 18:31:55 +0000 (18:31 +0000)
renderer/renderer.go

index 890006b98e0157ba5d6bd1052f3b559a59d0b007..3eb04572048b77b6a748f06175f131a2d3586016 100644 (file)
@@ -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"
 }