mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: properly sort durations to prevent heartbeats from being counted twice
This commit is contained in:
@ -16,7 +16,7 @@ func (d Durations) Swap(i, j int) {
|
||||
d[i], d[j] = d[j], d[i]
|
||||
}
|
||||
|
||||
func (d *Durations) Sorted() *Durations {
|
||||
func (d Durations) Sorted() Durations {
|
||||
sort.Sort(d)
|
||||
return d
|
||||
}
|
||||
|
Reference in New Issue
Block a user