Skip to content

Commit

Permalink
Merge pull request opensearch-project#369 from javierhonduco/fix-inde…
Browse files Browse the repository at this point in the history
…x-out-of-range

profiler: Fix index out of range
  • Loading branch information
kakkoyun authored Apr 21, 2022
2 parents cec09cb + 9a3d30f commit e7fb679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/profiler/profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -769,10 +769,10 @@ func (p *CgroupProfiler) writeProfile(ctx context.Context, prof *profile.Profile
i = 0
)
for key, value := range p.Labels() {
labelOldFormat[i] = &profilestorepb.Label{
labelOldFormat = append(labelOldFormat, &profilestorepb.Label{
Name: string(key),
Value: string(value),
}
})
i++
}

Expand Down

0 comments on commit e7fb679

Please sign in to comment.