Updated TimerList struct
This commit is contained in:
@@ -51,7 +51,7 @@ func opStop(cmd *cobra.Command, args []string) error {
|
||||
fmt.Println("Stopping at : " + end.Format(time.RFC3339))
|
||||
var timerIds []int
|
||||
if id == -1 {
|
||||
for _, v := range *p.TimerList.GetActiveTimers() {
|
||||
for _, v := range p.TimerList.GetActiveTimers().GetTimerSlice() {
|
||||
timerIds = append(timerIds, v.Id)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user