We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea0e609 + 94fb627 commit 56f1b13Copy full SHA for 56f1b13
pkg/falcon/extractor.go
@@ -179,10 +179,12 @@ func GetMessages(config *config.Config, ctx context.Context) (results map[string
179
allHostDetails := make([]*models.DeviceapiDeviceSwagger, 0)
180
181
step := 100
182
- sliceStart := 0
183
- sliceEnd := sliceStart + step
184
185
- for {
+ for sliceStart := 0; sliceStart < len(hostResult.Payload.Resources); sliceStart += step {
+ sliceEnd := sliceStart + step
+ if sliceEnd > len(hostResult.Payload.Resources) {
186
+ sliceEnd = len(hostResult.Payload.Resources)
187
+ }
188
189
if sliceEnd == len(hostResult.Payload.Resources)-1 {
190
break
0 commit comments