Updated TimerList struct
This commit is contained in:
@@ -38,7 +38,7 @@ func opSwitch(cmd *cobra.Command, args []string) error {
|
||||
var timerIds []int
|
||||
end := time.Now()
|
||||
// Stop all running timers and start a new one with the given args
|
||||
for _, v := range *p.TimerList.GetActiveTimers() {
|
||||
for _, v := range p.TimerList.GetActiveTimers().GetTimerSlice() {
|
||||
timerIds = append(timerIds, v.Id)
|
||||
}
|
||||
fmt.Print("Stopping ", timerIds, "\n")
|
||||
|
||||
Reference in New Issue
Block a user