Several changes
Switch timerlist to a slice of pointers to timers Go mod
This commit is contained in:
2
sort.go
2
sort.go
@@ -45,7 +45,7 @@ func (ts *timerlistSort) Swap(l, r int) {
|
||||
}
|
||||
|
||||
func (ts *timerlistSort) Less(l, r int) bool {
|
||||
return ts.by(&ts.timerlists[l], &ts.timerlists[r])
|
||||
return ts.by(ts.timerlists[l], ts.timerlists[r])
|
||||
}
|
||||
|
||||
func (timerlist *TimerList) sortBy(by func(t1, t2 *Timer) bool) *TimerList {
|
||||
|
||||
Reference in New Issue
Block a user