diff options
Diffstat (limited to 'cmd/ursrv/aggregate/analytics.go')
-rw-r--r-- | cmd/ursrv/aggregate/analytics.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/ursrv/aggregate/analytics.go b/cmd/ursrv/aggregate/analytics.go index eb9e6acd0d..fb14ee4bbe 100644 --- a/cmd/ursrv/aggregate/analytics.go +++ b/cmd/ursrv/aggregate/analytics.go @@ -150,8 +150,8 @@ next: if res[i].Key == group { res[i].Count += a.Count res[i].Percentage += a.Percentage - if len(res[i].Items) < perGroup { - res[i].Items = append(res[i].Items, a) + if len(res[i].Children) < perGroup { + res[i].Children = append(res[i].Children, a) } continue next } @@ -160,7 +160,7 @@ next: Key: group, Count: a.Count, Percentage: a.Percentage, - Items: []report.Analytic{a}, + Children: []report.Analytic{a}, }) } |