Skip to content

Commit

Permalink
Merge pull request #58 from nirmata/NDEV-17738-large-reports-1.10
Browse files Browse the repository at this point in the history
NDEV-17738 sort before chunking - 1.10
  • Loading branch information
pns-nirmata authored Oct 18, 2023
2 parents 4ef8dc1 + 021d903 commit 38ae6b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/report/aggregate/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ func (c *controller) reconcile(ctx context.Context, logger logr.Logger, key, _,
chunkSize = len(results)
}
for name, results := range splitReports {
reportutils.SortReportResults(results)
for i := 0; i < len(results); i += chunkSize {
end := i + chunkSize
if end > len(results) {
Expand Down

0 comments on commit 38ae6b3

Please sign in to comment.