From 63aae362af36c4a141a0190aa6b836e8411304e1 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 8 Dec 2015 16:19:51 +0200 Subject: [PATCH] count accounts instead of full list --- apier/v1/scheduler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apier/v1/scheduler.go b/apier/v1/scheduler.go index 0f34bae39..ab4d0b9c4 100644 --- a/apier/v1/scheduler.go +++ b/apier/v1/scheduler.go @@ -116,7 +116,7 @@ func (self *ApierV1) GetScheduledActions(attrs AttrsGetScheduledActions, reply * schedActions := make([]*ScheduledActions, 0) // needs to be initialized if remains empty scheduledActions := self.Sched.GetQueue() for _, qActions := range scheduledActions { - sas := &ScheduledActions{ActionsId: qActions.ActionsId, ActionPlanId: qActions.Id, ActionPlanUuid: qActions.Uuid, Accounts: len(qActions.ActionsId)} + sas := &ScheduledActions{ActionsId: qActions.ActionsId, ActionPlanId: qActions.Id, ActionPlanUuid: qActions.Uuid, Accounts: len(qActions.AccountIds)} if attrs.SearchTerm != "" && !(strings.Contains(sas.ActionPlanId, attrs.SearchTerm) || strings.Contains(sas.ActionsId, attrs.SearchTerm)) {