Skip to content

Commit

Permalink
make map before adding data
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 committed Oct 30, 2023
1 parent 0ca95fe commit 4e82c33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/runner/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func exec(ctx context.Context, tool tools.Tool, pod corev1.Pod, result *tools.Re
}

func genResultSummary(result *tools.Result) {
result.StatusCodes = make(map[int]int64)
for _, pod := range result.Pods {
result.TotalAvgRps += pod.AvgRps
result.StdevRps += pod.StdevRps
Expand Down

0 comments on commit 4e82c33

Please sign in to comment.