mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-05 04:29:21 +02:00
Fix TimeSince calculation
This commit is contained in:
parent
a1f49af1d9
commit
3280af21ed
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue