report/comparisonOfMeans.go: obj init readability
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6c1458f08b
commit
5b02120f96
@ -35,9 +35,10 @@ func SaveComparisonOfMeans(p PicList, benchCount int) {
|
|||||||
|
|
||||||
// split the slice to smaller, per-bench slices.
|
// split the slice to smaller, per-bench slices.
|
||||||
for i := 0; i < len(p.Pics); i += benchCount {
|
for i := 0; i < len(p.Pics); i += benchCount {
|
||||||
pL := &PicList{}
|
pL := &PicList{
|
||||||
pL.Pics = p.Pics[i : i+benchCount]
|
Pics: p.Pics[i : i+benchCount],
|
||||||
pL.Bench = p.Pics[i].Bench
|
Bench: p.Pics[i].Bench,
|
||||||
|
}
|
||||||
benchPicLists = append(benchPicLists, *pL)
|
benchPicLists = append(benchPicLists, *pL)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user